移動先: 概要 戻り値 フラグ MEL の例
colorIndex [-hueSaturationValue] [-resetToFactory] [-resetToSaved]
int [float float float]
colorIndex は「元に戻す」が可能、「照会」が可能、「編集」が不可能です。
このインデックスはカラー パレットのカラー インデックスを指定します。
R、G、B の値(0-1)は、カラーの RGB 値(または -hsv フラグ使用の場合は HSV 値)を指定します。
戻り値の型は照会モードでは照会フラグが基になります。
hueSaturationValue, resetToFactory, resetToSaved
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: 1 つのコマンドで複数回使用可能なフラグ
|
// Set the first entry in the color palette to have RGB values 1 0 0 - red.
colorIndex 1 1 0 0;
// Set the first entry in the color palette to have HSV values 360 1 1 - red.
colorIndex -hsv 1 360 0 0;
// Return the RGB color values of the first entry of the color palette.
colorIndex -q 1;
// Return the HSV color values of the first entry of the color palette.
colorIndex -q -hsv 1;