ColorTints

A collection of tints.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

add(
baseColor ​[, withProperties])
 → Tint
anyItem(
)
 → Tint
count(
)
 → number
everyItem(
)
 → Tint
firstItem(
)
 → Tint
item(
index)
 → Tint
itemByID(
id)
 → Tint
itemByName(
name)
 → Tint
itemByRange(
from, to)
 → Tint
lastItem(
)
 → Tint
middleItem(
)
 → Tint
nextItem(
obj)
 → Tint
previousItem(
obj)
 → Tint
toSource(
)
 → string
add(
baseColor ​[, withProperties])
 → Tint
Creates a new tint swatch.
baseColor Color The color that the tint is based upon.
withProperties Object Initial values for properties of the new Tint (Optional)
anyItem(
)
 → Tint
Returns any Tint in the collection.
count(
)
 → number
Displays the number of elements in the Tint.
everyItem(
)
 → Tint
Returns every Tint in the collection.
firstItem(
)
 → Tint
Returns the first Tint in the collection.
item(
index)
 → Tint
Returns the Tint with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → Tint
Returns the Tint with the specified ID.
id number The ID.
itemByName(
name)
 → Tint
Returns the Tint with the specified name.
name string The name.
itemByRange(
from, to)
 → Tint
Returns the Tints within the specified range.
from The Tint, index, or name at the beginning of the range. Can accept: Tint, Long Integer or String.
to The Tint, index, or name at the end of the range. Can accept: Tint, Long Integer or String.
lastItem(
)
 → Tint
Returns the last Tint in the collection.
middleItem(
)
 → Tint
Returns the middle Tint in the collection.
nextItem(
obj)
 → Tint
Returns the Tint whose index follows the specified Tint in the collection.
obj Tint The Tint whose index comes before the desired Tint.
previousItem(
obj)
 → Tint
Returns the Tint with the index previous to the specified index.
obj Tint The index of the Tint that follows the desired Tint.
toSource(
)
 → string
Generates a string which, if executed, will return the Tint.