A gradient.
Go to Property Listing | Method Listing
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
readonly |
A collection of gradient stops. |
||
|
readonly |
The unique ID of the Gradient. |
||
|
readonly |
The index of the Gradient within its containing object. |
||
|
read/write |
A property that can be set to any string. |
||
|
read/write |
The name of the Gradient. |
||
|
readonly |
The parent of the Gradient (a Application or Document). |
||
|
read/write |
A property that allows setting of several properties at the same time. |
||
|
read/write |
The gradient type. |
Gradient duplicate ()
Duplicates the Gradient.
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined merge (with:Array of Varies Swatches Swatch String)
Merge one or more other swatches into this one.
|
Parameter |
Type |
Description |
|---|---|---|
|
with |
Array of Swatches |
The swatches to merge. Can accept: Array of Swatches, Swatch or String. |
undefined remove (replacingWith:Swatch)
Delete swatch.
|
Parameter |
Type |
Description |
|---|---|---|
|
replacingWith |
The swatch to apply in place of this one |
GradientStop.parent