Colors

Color(カラー)のコレクション

プロパティ

Ver.プロパティ名R/O説明
[18][19][20][21] length 数値オブジェクト数

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[18][19][20][21] add([withProperties]) Color新しいオブジェクトを作成し、それを返す
[withProperties] Objectプロパティを設定
[18][19][20][21] anyItem() Colorどれかのオブジェクトを返す
[18][19][20][21] count() 数値要素数を返す
[18][19][20][21] everyItem() Color (Array)全てのオブジェクトを返す
[18][19][20][21] firstItem() Color最初のオブジェクトを返す
[18][19][20][21] item(index) Colorインデックスまたは名前で指定したオブジェクトを返す
index 数値, 文字列値インデックスまたは名前
[18][19][20][21] itemByID(id) ColorIDで指定したオブジェクトを返す
id 数値
[18][19][20][21] itemByName(name) Color名前で指定したオブジェクトを返す
name 文字列値
[18][19][20][21] itemByRange(from, to) Color (Array)範囲で指定したオブジェクトを返す
from Color, 数値, 文字列値範囲の開始
to Color, 数値, 文字列値範囲の終了
[18][19][20][21] lastItem() Color最後のオブジェクトを返す
[18][19][20][21] middleItem() Color真ん中のオブジェクトを返す
[18][19][20][21] nextItem(obj) Color一つ後のオブジェクトを返す
obj Color位置の基準になるオブジェクト
[18][19][20][21] previousItem(obj) Color一つ前のオブジェクトを返す
obj Color位置の基準になるオブジェクト
[18][19][20][21] toSource() 文字列値ソースコードを表す文字列を返す

Color

カラー

プロパティ(parentとその逆)

Ver.プロパティR/O
[18][19][20][21] parent Application, Document
[18][19][20][21] parentColorGroup ColorGroup
[18][19][20][21] eventListeners EventListeners
[18][19][20][21] events Events

プロパティ

Ver.プロパティ名R/O説明
[18][19][20][21] colorValue [ r, g, b ], [ c, m, y, k ], [ l, a, b ]カラー値
[18][19][20][21] id 数値オブジェクトのID
[18][19][20][21] index 数値インデックス
[18][19][20][21] isValid 真偽値オブジェクトが有効かどうか
[18][19][20][21] label 文字列値スクリプトラベル
[18][19][20][21] model ColorModel
ColorModel
Ver.プロパティ値/管理用文字説明
[18][19][20][21]MIXEDINKMODEL1768844664
inmx
混合インキ
[18][19][20][21]PROCESS1886548851
prss
プロセスカラー
[18][19][20][21]REGISTRATION1919248243
regs
レジストレーション
[18][19][20][21]SPOT1936748404
spot
特色
[18][19][20][21] name 文字列値オブジェクトの名前
[18][19][20][21] properties Object
[18][19][20][21] space ColorSpace
ColorSpace
Ver.プロパティ値/管理用文字説明
[18][19][20][21]CMYK1129142603
CMYK
CMYK
[18][19][20][21]HSB1665684290
cHSB
HSB
[18][19][20][21]LAB1665941826
cLAB
LAB
[18][19][20][21]MIXEDINK1666009432
cMIX
混合インキ
[18][19][20][21]RGB1666336578
cRGB
RGB
カラースペース

メソッド

Ver.メソッドの書式戻り値メソッドの説明
  パラメータパラメータの説明
[18][19][20][21] addEventListener(eventType, handler, [captures]) EventListenerEventListenerを作成
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[18][19][20][21] duplicate() Color複製。複製されたオブジェクトを返す
[18][19][20][21] extractLabel(key) 文字列値キーに関連づけられた値を取得
key 文字列値キー
[18][19][20][21] getElements() Array( Color )オブジェクト参照を返す
[18][19][20][21] insertLabel(key, value) なしキーに関連づけられた値を設定
key 文字列値キー
value 文字列値
[18][19][20][21] merge(with) Swatchスウォッチを結合
with Array( Swatch ), Swatch, 文字列値結合するスウォッチ
[18][19][20][21] remove([replacingWith]) なし削除
[replacingWith] Swatch置き換えるスウォッチ
[18][19][20][21] removeEventListener(eventType, handler, [captures]) 真偽値EventListenerを削除
eventType 文字列値
handler ファイル, JavaScript関数
[captures] 真偽値(廃止)
[18][19][20][21] toSource() 文字列値ソースコードを表す文字列を返す
[18][19][20][21] toSpecifier() 文字列値Retrieves the object specifier.