Difference between revisions of "PRIM COLOR/ja"
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) (New page: <onlyinclude>{{#if: {{#vardefine:return|[ {{HoverLink|ZERO_VECTOR|{{LSL VR|0.0|0.0|0.0}} vector color}}, {{HoverText|0.0|float alpha}} ]}} {{#vardefine:color_const|{{LSL Const/...) |
Mizu Melody (talk | contribs) m |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{#if: | <onlyinclude>{{#if: | ||
{{#vardefine:return|[ {{HoverLink|ZERO_VECTOR|{{LSL VR|0.0|0.0|0.0}} vector color}}, {{HoverText|0.0|float alpha}} ]}} | {{#vardefine:return|[ {{HoverLink|ZERO_VECTOR/ja|{{LSL VR|0.0|0.0|0.0}} vector color}}, {{HoverText|0.0|float alpha}} ]}} | ||
{{#vardefine:color_const|{{LSL Const/ja|PRIM_COLOR|integer|18|c= | {{#vardefine:color_const|{{LSL Const/ja|PRIM_COLOR|integer|18|c=この定数を使用して、プリムの側面の色と透過度を{{GetSet|{{{1|}}}|取得|設定|/}}します}}}} | ||
{{#vardefine:facetable|{{#var:facetable}} | {{#vardefine:facetable|{{#var:facetable}} | ||
Line 16: | Line 16: | ||
{{LSL_Function/face/ja|face|{{#var:color_const}}|!footer=*|return={{#var:return}}}} | {{LSL_Function/face/ja|face|{{#var:color_const}}|!footer=*|return={{#var:return}}}} | ||
}}{{LSL Constant | }}{{LSL Constant | ||
|inject-2={{LSL PrimitiveParam Categorize|Face}} | |||
|name=PRIM_COLOR | |name=PRIM_COLOR | ||
|type=integer | |type=integer | ||
|value=18 | |value=18 | ||
|desc= | |desc=この定数を使用して、プリムの側面の色と透過度を取得設定します。 | ||
|examples= | |examples= | ||
|constants= | |constants= | ||
|pa={{LSL Constant/List | |pa={{LSL Constant/List|i_front=[ {{#var:color_const}}, |i_end= ] | ||
|text= | |text={{LSLG/ja|llSetPrimitiveParams}} や {{LSLG/ja|llSetLinkPrimitiveParams}} と一緒に使用されたとき | ||
|i1_type=integer|i1_name=face | |i1_type=integer|i1_name=face | ||
|i2_type= | |i2_type=vector|i2_name=color | ||
|i3_type=float|i3_name=alpha | |i3_type=float|i3_name=alpha | ||
|toc=llSetPrimitiveParams | |toc=llSetPrimitiveParams | ||
}} | }} | ||
|pb={{LSL Constant/List/ja|i_front= | |pb={{LSL Constant/List/ja|i_front={{LSLG/ja|llGetPrimitiveParams}}([ {{#var:color_const}}, |i_end= ]);| | ||
|r_front=list [ |r_end= ] | |r_front=Returns the {{LSLG/ja|list}} [ |r_end= ] | ||
|text=''' | |text='''Caveats:''' | ||
{{#var:caveats}}{{#vardefine:caveats}} | {{#var:caveats}}{{#vardefine:caveats}} | ||
|toc=llGetPrimitiveParams | |toc=llGetPrimitiveParams | ||
|i1_type=integer|i1_name=face | |i1_type=integer|i1_name=face | ||
|r1_type= | |r1_type=vector|r1_name=color | ||
|r2_type=float|r2_name=alpha | |r2_type=float|r2_name=alpha | ||
}} | }} | ||
|functions= | |functions= | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|llSetPrimitiveParams}}|}} | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|llSetLinkPrimitiveParams}}|}} | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|llGetPrimitiveParams}}|}} | ||
|events= | |events= | ||
{{LSL DefineRow|| | {{LSL DefineRow||{{LSLG/ja|changed}}|}} | ||
|location | |location | ||
|cat1=Prim | |cat1=Prim |
Latest revision as of 23:27, 20 December 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_COLOR = 18;The integer constant PRIM_COLOR has the value 18
この定数を使用して、プリムの側面の色と透過度を取得設定します。
llSetPrimitiveParams
[ PRIM_COLOR, integer face, vector color, float alpha ]• integer | face | – | 面 番号もしくは ALL_SIDES | |
• vector | color | – | RGB の色 <R, G, B> (<0.0, 0.0, 0.0> = 黒, <1.0, 1.0, 1.0> = 白) | |
• float | alpha | – | 0.0 (透過) ~ 1.0 (表示) (0.0 <= alpha <= 1.0) |
llSetPrimitiveParams や llSetLinkPrimitiveParams と一緒に使用されたとき
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_COLOR, integer face ]);Returns the list [ vector color, float alpha ]
• integer | face | – | 面 番号もしくは ALL_SIDES | ||
• vector | color | – | RGB の色 <R, G, B> (<0.0, 0.0, 0.0> = 黒, <1.0, 1.0, 1.0> = 白) | ||
• float | alpha | – | 0.0 (透過) ~ 1.0 (表示) (0.0 <= alpha <= 1.0) |
Caveats:
- face が ALL_SIDES であれば PRIM_COLOR は全ての面に作用します。
- face が存在しない面を指している場合、 PRIM_COLOR の結果は [ ZERO_VECTOR/ja, 0.0 ] です。
Caveats
Related Articles
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams |
Events
• | changed |
Articles
• | LSL での色 | |||
• | 透明度 |