ColorMixedInks

A collection of mixed inks.

Instance Properties

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

Methods

add(
inkList, inkPercentages ​[, withProperties])
 → MixedInk
anyItem(
)
 → MixedInk
count(
)
 → number
everyItem(
)
 → MixedInk
firstItem(
)
 → MixedInk
item(
index)
 → MixedInk
itemByID(
id)
 → MixedInk
itemByName(
name)
 → MixedInk
itemByRange(
from, to)
 → MixedInk
lastItem(
)
 → MixedInk
middleItem(
)
 → MixedInk
nextItem(
obj)
 → MixedInk
previousItem(
obj)
 → MixedInk
toSource(
)
 → string
add(
inkList, inkPercentages ​[, withProperties])
 → MixedInk
Creates a new mixed ink swatch.
inkList The inks to mix. Note: Must contain at least two process inks and one spot ink. Can accept: Array of Inks or MixedInkGroup.
inkPercentages Array<number> The percent to use of each ink in the ink list. (Range: 0 to 100 for each ink)
withProperties Object Initial values for properties of the new MixedInk (Optional)
anyItem(
)
 → MixedInk
Returns any MixedInk in the collection.
count(
)
 → number
Displays the number of elements in the MixedInk.
everyItem(
)
 → MixedInk
Returns every MixedInk in the collection.
firstItem(
)
 → MixedInk
Returns the first MixedInk in the collection.
item(
index)
 → MixedInk
Returns the MixedInk with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → MixedInk
Returns the MixedInk with the specified ID.
id number The ID.
itemByName(
name)
 → MixedInk
Returns the MixedInk with the specified name.
name string The name.
itemByRange(
from, to)
 → MixedInk
Returns the MixedInks within the specified range.
from The MixedInk, index, or name at the beginning of the range. Can accept: MixedInk, Long Integer or String.
to The MixedInk, index, or name at the end of the range. Can accept: MixedInk, Long Integer or String.
lastItem(
)
 → MixedInk
Returns the last MixedInk in the collection.
middleItem(
)
 → MixedInk
Returns the middle MixedInk in the collection.
nextItem(
obj)
 → MixedInk
Returns the MixedInk whose index follows the specified MixedInk in the collection.
obj MixedInk The MixedInk whose index comes before the desired MixedInk.
previousItem(
obj)
 → MixedInk
Returns the MixedInk with the index previous to the specified index.
obj MixedInk The index of the MixedInk that follows the desired MixedInk.
toSource(
)
 → string
Generates a string which, if executed, will return the MixedInk.