Difference between revisions of "LlGetColor/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{LSL Function/color/ja|none}}{{LSL_Function/face/ja|face}}
{{LSL_Function/face/ja|face|return={{LSL VR|0.0|0.0|0.0}}|get=プリムの全ての面の色の平均を返します。{{Footnote|RGB は非線形であるため、この色は実際はそんなに使えるものとになるとは限りません。}}}}{{LSL Function/color|none}}
{{LSL_Function/ja
{{LSL_Function
|func_id=52|func_sleep=0.0|func_energy=10.0
|func_id=52|func_sleep=0.0|func_energy=10.0
|func=llGetColor|sort=GetColor
|func=llGetColor|sort=GetColor
Line 8: Line 8:
|return_text='''face'''の色
|return_text='''face'''の色
|spec
|spec
|caveats=*ALL_SIDESを使って、面の色の平均を返すことができます。
|caveats
|examples=
|examples=
<lsl>//Tells the owner the color on all sides
<lsl>// 全ての面の色をオーナーに知らせます
default
default
{
{
Line 19: Line 19:
         while(i < max)
         while(i < max)
         {
         {
             llSay(0,"Face "+(string)i+" color is " + (string)llGetColor(i));
             llOwnerSay("Face " + (string) i + " color is " + (string) llGetColor(i));
             ++i;
             ++i;
         }
         }
Line 30: Line 30:
|also_footer
|also_footer
|also_functions=
|also_functions=
{{LSL DefineRow||[[llGetAlpha/ja|llGetAlpha]]|プリムのアルファを取得します}}
{{LSL DefineRow||{{LSLG/ja|llGetAlpha}}|プリムの透明度を取得します}}
{{LSL DefineRow||[[llSetAlpha/ja|llSetAlpha]]|プリムのアルファを設定します}}
{{LSL DefineRow||{{LSLG/ja|llSetAlpha}}|プリムの透明度を設定します}}
{{LSL DefineRow||[[llSetColor/ja|llSetColor]]|プリムの色を設定します。}}
{{LSL DefineRow||{{LSLG/ja|llSetColor}}|プリムの色を設定します。}}
{{LSL DefineRow||[[llSetLinkColor/ja|llSetLinkColor]]|リンクプリムの色を設定します}}
{{LSL DefineRow||{{LSLG/ja|llSetLinkColor}}|リンクプリムの色を設定します}}
{{LSL DefineRow||[[llSetLinkAlpha/ja|llSetLinkAlpha]]|リンクプリムのアルファを設定します}}
{{LSL DefineRow||{{LSLG/ja|llSetLinkAlpha}}|リンクプリムの透明度を設定します}}
{{LSL DefineRow||[[llGetNumberOfSides/ja|llGetNumberOfSides]]|プリム上の面番号を取得します}}
{{LSL DefineRow||{{LSLG/ja|llGetNumberOfSides}}|プリム上の面番号を取得します}}
|also_events
|also_events
|also_articles
|also_articles

Revision as of 06:56, 3 May 2010

Summary

Function: vector llGetColor( integer face );

Returns a vector faceの色

• integer face 番号もしくは ALL_SIDES

faceALL_SIDES であれば関数はプリムの全ての面の色の平均を返します。[1]

Caveats

  • face が存在しない面を指している場合、結果は <0.0, 0.0, 0.0> です。
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>// 全ての面の色をオーナーに知らせます default {

   state_entry()
   {
       integer i = 0;
       integer max = llGetNumberOfSides();
       while(i < max)
       {
           llOwnerSay("Face " + (string) i + " color is " + (string) llGetColor(i));
           ++i;
       }
   }
}</lsl>

See Also

Functions

•  llGetAlpha プリムの透明度を取得します
•  llSetAlpha プリムの透明度を設定します
•  llSetColor プリムの色を設定します。
•  llSetLinkColor リンクプリムの色を設定します
•  llSetLinkAlpha リンクプリムの透明度を設定します
•  llGetNumberOfSides プリム上の面番号を取得します

Articles

•  Color in LSL

Deep Notes

Search JIRA for related Issues

Footnotes

  1. ^ RGB は非線形であるため、この色は実際はそんなに使えるものとになるとは限りません。

Signature

function vector llGetColor( integer face );