A color swatch.
Go to Property Listing | Method Listing
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
read/write |
The ink values that create the color, specified as a percentage for each ink. Note: The number of values required and the range depends on the color space. For RGB, specify three values, with each value in the range 0 to 255; for CMYK, specify four values representing C, M, Y, and K, with each value in the range 0 to 100; for LAB, specify three values representing L (Range: 0 to 100), A (Range: -128 to 127), and B (Range: -128 to 127); for mixed ink, specify values for each ink in the ink list, with each value in the range 0 to 100. |
||
|
readonly |
The unique ID of the Color. |
||
|
readonly |
The index of the Color within its containing object. |
||
|
read/write |
A property that can be set to any string. |
||
|
read/write |
The color model. |
||
|
read/write |
The name of the Color. |
||
|
readonly |
The parent of the Color (a Application or Document). |
||
|
read/write |
A property that allows setting of several properties at the same time. |
||
|
read/write |
The color space. |
Color duplicate ()
Duplicates the Color.
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined merge (with:Array of Varies Swatches Swatch String)
Merge one or more other swatches into this one.
|
Parameter |
Type |
Description |
|---|---|---|
|
with |
Array of Swatches |
The swatches to merge. Can accept: Array of Swatches, Swatch or String. |
undefined remove (replacingWith:Swatch)
Delete swatch.
|
Parameter |
Type |
Description |
|---|---|---|
|
replacingWith |
The swatch to apply in place of this one |
GradientStop.stopColor