Color.Green

Color.Green

説明

緑コンポーネント値をDoubleとして戻したり、設定したりします。

C#構文

// get accessor

Double rtn = Color.Green;

// set accessor

Color.Green = Double;

VBScript の例

set oSpot = GetValue("Scene_Root").AddLightRig("Spot").Light

set oColor = oSpot.OGLLight.Color

Application.LogMessage "color: " & oColor.Red & ", " & oColor.Green & ", " & oColor.Blue & ", " & oColor.Alpha

oColor.Red = 2

oColor.Green = 2

oColor.Blue = 2

oColor.Alpha = 2

Application.LogMessage "color: " & oColor.Red & ", " & oColor.Green & ", " & oColor.Blue & ", " & oColor.Alpha