Difference between revisions of "PRIM COLOR/ja"
Jump to navigation
Jump to search
Mako Nozaki (talk | contribs) m (only fixed include) |
Mako Nozaki (talk | contribs) m |
||
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 20: | Line 20: | ||
|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 |
Revision as of 06:18, 8 June 2010
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
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 ] です。
関連記事
関数
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams |
イベント
• | changed |
記事
• | LSL での色 | |||
• | 透明度 |