Difference between revisions of "PRIM COLOR/ja"

From Second Life Wiki
Jump to navigation Jump to search
(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/...)
 
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<onlyinclude>{{#if:
<onlyinclude>{{#if:


{{#vardefine:return|[&nbsp;{{HoverLink|ZERO_VECTOR|{{LSL VR|0.0|0.0|0.0}} vector color}}, {{HoverText|0.0|float alpha}}&nbsp;]}}
{{#vardefine:return|[&nbsp;{{HoverLink|ZERO_VECTOR/ja|{{LSL VR|0.0|0.0|0.0}} vector color}}, {{HoverText|0.0|float alpha}}&nbsp;]}}


{{#vardefine:color_const|{{LSL Const/ja|PRIM_COLOR|integer|18|c=プリムの側面の色とアルファを{{GetSet|{{{1|}}}|取得|設定|/}}するのに用います}}}}
{{#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/ja
}}{{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/ja|i_front=[&#32;{{#var:color_const}},&#32;|i_end=&nbsp;]
|pa={{LSL Constant/List|i_front=[&#32;{{#var:color_const}},&#32;|i_end=&nbsp;]
|text=[[llSetPrimitiveParams/ja|llSetPrimitiveParams]]と[[llSetLinkPrimitiveParams/ja|llSetLinkPrimitiveParams]]を実行する時に用います。
|text={{LSLG/ja|llSetPrimitiveParams}} や {{LSLG/ja|llSetLinkPrimitiveParams}} と一緒に使用されたとき
|i1_type=integer|i1_name=face
|i1_type=integer|i1_name=face
|i2_type=float|i2_name=color
|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=[[llGetPrimitiveParams/ja|llGetPrimitiveParams]]([&nbsp;{{#var:color_const}},&#32;|i_end=&nbsp;]);|
|pb={{LSL Constant/List/ja|i_front={{LSLG/ja|llGetPrimitiveParams}}([&nbsp;{{#var:color_const}},&#32;|i_end=&nbsp;]);|
|r_front=list [&nbsp;|r_end=&nbsp;]を返します。
|r_front=Returns the {{LSLG/ja|list}} [&nbsp;|r_end=&nbsp;]
|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=float|r1_name=color
|r1_type=vector|r1_name=color
|r2_type=float|r2_name=alpha
|r2_type=float|r2_name=alpha
}}
}}
|functions=
|functions=
{{LSL DefineRow||[[llSetPrimitiveParams/ja|llSetPrimitiveParams]]|}}
{{LSL DefineRow||{{LSLG/ja|llSetPrimitiveParams}}|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams/ja|llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||{{LSLG/ja|llSetLinkPrimitiveParams}}|}}
{{LSL DefineRow||[[llGetPrimitiveParams/ja|llGetPrimitiveParams]]|}}
{{LSL DefineRow||{{LSLG/ja|llGetPrimitiveParams}}|}}
|events=
|events=
{{LSL DefineRow||[[changed/ja|changed]]|}}
{{LSL DefineRow||{{LSLG/ja|changed}}|}}
|location
|location
|cat1=Prim
|cat1=Prim

Latest revision as of 23:27, 20 December 2015

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;