Adobe InDesign CS (3.0) Object Model JS: Tint

InDesign CS

Class

Tint

 A tint swatch. Base Class: Color

QuickLinks

duplicate, extractLabel, insertLabel, merge, remove

Hierarchy

Application | Document
Color
Tint

Properties

PropertyTypeAccessDescription
colorValue Array of number r/wThe 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.
idnumber readonlyThe unique ID of the Tint.
indexnumber readonlyThe index of the Tint within its containing object.
labelstring r/wA property that can be set to any string.
modelColorModel:
ColorModel.SPOT
ColorModel.PROCESS
ColorModel.REGISTRATION
ColorModel.MIXEDINKMODEL
r/wThe color model.
namestring r/wThe name of the Tint.
parentApplication
Document
readonlyThe parent of the Tint (a Application or Document).
propertiesObject r/wA property that allows setting of several properties at the same time.
spaceColorSpace:
ColorSpace.RGB
ColorSpace.CMYK
ColorSpace.LAB
ColorSpace.MIXEDINK
r/wThe color space.
tintValuenumber r/wThe percentage of the base color.

Methods

Instances

Tint duplicate ()
Duplicates the Tint.

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

void merge (with: any)
Merge one or more other swatches into this one.

ParameterTypeDescription
with Array of Swatches
String
Swatch
The swatches to merge. Can accept: Array of Swatches, Swatch or String.

void remove (replacingWith: Swatch)
Delete swatch.

ParameterTypeDescription
replacingWithSwatchThe swatch to apply in place of this one

Return

Tint Tint.duplicate ()

Tint Tints.add ([color: Color][, withProperties: Object])

Jongware, 27-Jun-2010 v3.0.3dContents :: Index