Difference between revisions of "LlGetColor/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by one other user not shown)
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/ja|none}}
{{LSL_Function/ja
{{LSL_Function/ja
|func_id=52|func_sleep=0.0|func_energy=10.0
|func_id=52|func_sleep=0.0|func_energy=10.0
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
<source lang="lsl2">// 全ての面の色をオーナーに知らせます
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;
         }
         }
     }
     }
}</lsl>
}</source>
|helpers
|helpers
|also_header
|also_header
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

Latest revision as of 06:22, 25 February 2016

要約

関数: vector llGetColor( integer face );

faceの色を vector で返します。

• integer face 番号もしくは ALL_SIDES

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

警告

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

サンプル

// 全ての面の色をオーナーに知らせます
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            llOwnerSay("Face " + (string) i + " color is " + (string) llGetColor(i));
            ++i;
        }
    }
}

関連項目

関数

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

記事

•  LSL での色

特記事項

Search JIRA for related Issues

脚注

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

Signature

function vector llGetColor( integer face );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。