PRIM COLOR/ja

From Second Life Wiki
Jump to navigation Jump to search

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)

llSetPrimitiveParamsllSetLinkPrimitiveParams と一緒に使用されたとき

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_COLOR, integer face ]);

Returns the listvector 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:

Related Articles

Functions

•  llSetPrimitiveParams
•  llSetLinkPrimitiveParams
•  llGetPrimitiveParams

Events

•  changed

Articles

•  LSL での色
•  透明度

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_COLOR = 18;