Tint
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
baseColor | Color | readonly | The color that the tint is based on. |
colorValue | Array of number | readonly | 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. |
id | number | readonly | The unique ID of the Tint. |
index | number | readonly | The index of the Tint within its containing object. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
label | string | r/w | A property that can be set to any string. |
model | ColorModel: ColorModel.SPOT ColorModel.PROCESS ColorModel.REGISTRATION ColorModel.MIXEDINKMODEL |
readonly | The color model. |
name | string | readonly | The name of the Tint. |
parent | Application Document |
readonly | The parent of the Tint (a Application or Document). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
space | ColorSpace: ColorSpace.RGB ColorSpace.CMYK ColorSpace.LAB ColorSpace.MIXEDINK |
readonly | The color space. |
tintValue | number (range: 0 - 100) | r/w | The percent of the base color. (Range: 0 to 100) |
Methods
Instances
Tint duplicate ()
Duplicates the Tint.
string extractLabel (key:
string)
Gets the label value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
Array of Tint getElements ()
Resolves the object specifier, creating an array of object references.
void insertLabel (key:
string, value:
string)
Sets the label to the value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
value | string | The value. |
Swatch merge (with:
any)
Merges the specified swatches with the swatch.
Parameter | Type | Description |
---|---|---|
with | Array of Swatches String Swatch | The swatches to merge. Can accept: Array of Swatches, Swatch or String. |
void remove ([replacingWith:
Swatch])
Deletes the swatch.
Parameter | Type | Description |
---|---|---|
replacingWith | Swatch | The swatch to apply in place of the deleted swatch. (Optional) |
string toSource ()
Generates a string which, if executed, will return the Tint.
string toSpecifier ()
Retrieves the object specifier.
Used in:
array of Tint Tints.itemByRange (from: any, to: any)
Tint Tints.nextItem (obj: Tint)
Tint Tints.previousItem (obj: Tint)
Return
Tint Tint.duplicate ()
Array of Tint Tint.getElements ()
Tint Tints.[] (index: number)
Tint Tints.add (baseColor: Color[, withProperties: Object])
Tint Tints.anyItem ()
Array of Tint Tints.everyItem ()
Tint Tints.firstItem ()
Tint Tints.item (index: any)
Tint Tints.itemByID (id: number)
Tint Tints.itemByName (name: string)
Array of Tint Tints.itemByRange (from: any, to: any)
Tint Tints.lastItem ()
Tint Tints.middleItem ()
Tint Tints.nextItem (obj: Tint)
Tint Tints.previousItem (obj: Tint)
Jongware, 20-Jun-2010 v3.0.3d | Contents :: Index |