Tints

A collection of tints.

Methods

Tintadd ([color:
Color][, withProperties:
Object])
Creates a new tint swatch.

Parameter Type Description
color Color The color that the tint is based upon. (Optional)
withProperties Object Initial values for properties of the new Tint (Optional)

TintanyItem ()
Returns any Tint in the collection.

number count ()
Displays the number of elements in the Tint.

Array of TinteveryItem ()
Returns every Tint in the collection.

TintfirstItem ()
Returns the first Tint in the collection.

Tintitem (index:
any)
Returns the Tint with the specified index or name.

Parameter Type Description
index Long Integer
String
The index or name. Can accept: Long Integer or String.

TintitemByID (id:
number)
Returns the Tint with the specified ID.

Parameter Type Description
id number The ID.

TintitemByName (name:
string)
Returns the Tint with the specified name.

Parameter Type Description
name string The name.

Array of TintitemByRange (from:
any, to:
any)
Returns the Tints within the specified range.

Parameter Type Description
from Tint
Long Integer
String
The Tint, index, or name at the beginning of the range. Can accept: Tint, Long Integer or String.
to Tint
Long Integer
String
The Tint, index, or name at the end of the range. Can accept: Tint, Long Integer or String.

TintlastItem ()
Returns the last Tint in the collection.

TintmiddleItem ()
Returns the middle Tint in the collection.

TintnextItem (obj:
Tint)
Returns the Tint whose index follows the specified Tint in the collection.

Parameter Type Description
obj Tint The Tint whose index comes before the desired Tint.

TintpreviousItem (obj:
Tint)
Returns the Tint with the index previous to the specified index.

Parameter Type Description
obj Tint The index of the Tint that follows the desired Tint.

string toSource ()
Generates a string which, if executed, will return the Tint.

Element of:

Application.tints
Document.tints

Leave a Comment

Previous post:

Next post: