Edit in GitHubLog an issue

Tints

A collection of tints.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the Tint.


Tint add( Color baseColor, Object withProperties )

Creates a new tint swatch.

Parameters

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

Tint item( Mixed index )

Returns the Tint with the specified index or name.

Parameters

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

Tint itemByName( String name )

Returns the Tint with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Tint itemByID( Number id )

Returns the Tint with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Tint itemByRange( Mixed from, Mixed to )

Returns the Tints within the specified range.

Parameters

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

Tint firstItem()

Returns the first Tint in the collection.


Tint lastItem()

Returns the last Tint in the collection.


Tint middleItem()

Returns the middle Tint in the collection.


Tint previousItem( Tint obj )

Returns the Tint with the index previous to the specified index.

Parameters

TypeNameDescription
Tint
obj
The index of the Tint that follows the desired Tint.

Tint nextItem( Tint obj )

Returns the Tint whose index follows the specified Tint in the collection.

Parameters

TypeNameDescription
Tint
obj
The Tint whose index comes before the desired Tint.

Tint anyItem()

Returns any Tint in the collection.


Tint everyItem()

Returns every Tint in the collection.


String toSource()

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


Tint []( Number index )

Returns the Tint with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.