A tint swatch.
Go to Property Listing | Method Listing
remove, duplicate, merge, insertLabel, extractLabel, toSource, getElements, toSpecifier, addEventListener, removeEventListener
Application, Boolean, Color, ColorModel, ColorSpace, Document, EventListeners, Events, Number, Object, String,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
baseColor |
readonly |
The color that the tint is based on. |
|
|
colorValue |
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. |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
id |
readonly |
The unique ID of the Tint. |
|
|
index |
readonly |
The index of the Tint within its containing object. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
label |
read/write |
A property that can be set to any string. |
|
|
model |
ColorModel.SPOT ColorModel.PROCESS ColorModel.REGISTRATION ColorModel.MIXEDINKMODEL |
readonly |
The color model. |
|
name |
readonly |
The name of the Tint. |
|
|
parent |
readonly |
The parent of the Tint (a Application or Document). |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
space |
ColorSpace.RGB ColorSpace.CMYK ColorSpace.LAB ColorSpace.MIXEDINK |
readonly |
The color space. |
|
tintValue |
Number (range 0 - 100) |
read/write |
The percent of the base color. (Range: 0 to 100) |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
Tint duplicate ()
Duplicates the Tint.
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
Tint getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
Swatch merge (with:Varies)
Merges the specified swatches with the swatch.
|
Parameter |
Type |
Description |
|---|---|---|
|
with |
Varies |
The swatches to merge. Can accept: Array of Swatches, Swatch or String. |
undefined remove (replacingWith:Swatch)
Deletes the swatch.
|
Parameter |
Type |
Description |
|---|---|---|
|
replacingWith |
The swatch to apply in place of the deleted swatch. (Optional) |
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the Tint.
String toSpecifier ()
Retrieves the object specifier.