Tints

A collection of tints.

Methods:

[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Tint [] (index:Number)

Returns the Tint with the specified index.

Parameter

Type

Description

index

Number

The index.

Tint add (baseColor:Color, withProperties:Object)

Creates a new tint swatch.

Parameter

Type

Description

baseColor

Color

The color that the tint is based upon.

withProperties

Object

Initial values for properties of the new Tint (Optional)

Tint anyItem ()

Returns any Tint in the collection.

Number count ()

Displays the number of elements in the Tint.

Tint everyItem ()

Returns every Tint in the collection.

Tint firstItem ()

Returns the first Tint in the collection.

Tint item (index:Varies LongInteger String)

Returns the Tint with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

The index or name. Can accept: Long Integer or String.

Tint itemByID (id:Number)

Returns the Tint with the specified ID.

Parameter

Type

Description

id

Number

The ID.

Tint itemByName (name:String)

Returns the Tint with the specified name.

Parameter

Type

Description

name

String

The name.

Tint itemByRange (from:Varies LongInteger Tint String, to:Varies LongInteger Tint String)

Returns the Tints within the specified range.

Parameter

Type

Description

from

LongInteger

Tint

String

The Tint, index, or name at the beginning of the range. Can accept: Tint, Long Integer or String.

to

LongInteger

Tint

String

The Tint, index, or name at the end of the range. Can accept: Tint, Long Integer or String.

Tint lastItem ()

Returns the last Tint in the collection.

Tint middleItem ()

Returns the middle Tint in the collection.

Tint nextItem (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.

Tint previousItem (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.

Object of

Application.tints

Document.tints