Tint

A tint swatch.

Methods:

duplicate, extractLabel, insertLabel, merge, remove

Objects:

ColorModel, ColorSpace, Number, Object, String

Hierarchy:

Superclass: Color

Class: Tint

Property Listing

Property

Type

Access

Description

colorValue

Array of Number (range 0 - 100)

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.

id

Number

readonly

The unique ID of the Tint.

index

Number

readonly

The index of the Tint within its containing object.

label

String

read/write

A property that can be set to any string.

model

ColorModel

ColorModel.MIXEDINKMODEL

ColorModel.PROCESS

ColorModel.REGISTRATION

ColorModel.SPOT

read/write

The color model.

name

String

read/write

The name of the Tint.

parent

Application

Document

readonly

The parent of the Tint (a Application or Document).

properties

Object

read/write

A property that allows setting of several properties at the same time.

space

ColorSpace

ColorSpace.CMYK

ColorSpace.LAB

ColorSpace.MIXEDINK

ColorSpace.RGB

read/write

The color space.

tintValue

Number

read/write

The percentage of the base color.

Method Listing

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.

undefined 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.

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

Swatch

String

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

undefined remove (replacingWith:Swatch)

Delete swatch.

Parameter

Type

Description

replacingWith

Swatch

The swatch to apply in place of this one

Return

Tints.add()

Tint.duplicate()