src/colors/ColorSwatches.ts
Methods |
Public add | ||||||
add(data: ColorConfig)
|
||||||
Defined in src/colors/ColorSwatches.ts:21
|
||||||
Parameters :
Returns :
IllustratorColor |
|
Public clear |
clear()
|
Defined in src/colors/ColorSwatches.ts:46
|
Returns :
void
|
Public count |
count()
|
Defined in src/colors/ColorSwatches.ts:50
|
Returns :
any
|
Public get | ||||||
get(name: string)
|
||||||
Defined in src/colors/ColorSwatches.ts:38
|
||||||
Parameters :
Returns :
any
|
Public has | ||||||
has(name: string)
|
||||||
Defined in src/colors/ColorSwatches.ts:42
|
||||||
Parameters :
Returns :
any
|
Public names |
names()
|
Defined in src/colors/ColorSwatches.ts:60
|
Returns :
any
|
Public random |
random()
|
Defined in src/colors/ColorSwatches.ts:54
|
Returns :
IllustratorColor
|
Public random | ||||||
random(amount: number)
|
||||||
Defined in src/colors/ColorSwatches.ts:55
|
||||||
Parameters :
Returns :
IllustratorColor[]
|
Public random | ||||||
random(amount?: number)
|
||||||
Defined in src/colors/ColorSwatches.ts:56
|
||||||
Parameters :
Returns :
IllustratorColor | []
|
Public remove | ||||||
remove(name: string)
|
||||||
Defined in src/colors/ColorSwatches.ts:34
|
||||||
Parameters :
Returns :
any
|
Public toArray |
toArray()
|
Defined in src/colors/ColorSwatches.ts:64
|
Returns :
any
|
Public toJSON |
toJSON()
|
Defined in src/colors/ColorSwatches.ts:68
|
Returns :
Record<string, IllustratorColor>
|