Skip to content

GradientStop

app.activeDocument.gradients[index].gradientStops[index]

A gradient stop definition that represents a point on a specific gradient defined in the document. Each gradient stop specifies a color change in the containing gradient.

See Changing a gradient stop color for an example.


app.activeDocument.gradients[index].gradientStops[index].color

The color linked to this gradient stop.

Color


app.activeDocument.gradients[index].gradientStops[index].midPoint

The midpoint key value, specified as a percentage from 13.0 to 87.0.

Number (double).


app.activeDocument.gradients[index].gradientStops[index].opacity

The opacity value for the gradient stop.

Range: 0.0 to 100.0

Number (double).


app.activeDocument.gradients[index].gradientStops[index].parent

The gradient that contains this gradient stop.

Gradient; read-only.


app.activeDocument.gradients[index].gradientStops[index].rampPoint

The location of the color in the blend in a range from 0.0 to 100.0, where 100.0 is 100%.

Number (double).


app.activeDocument.gradients[index].gradientStops[index].typename

The class name of the referenced object.

String; read-only.


app.activeDocument.gradients[index].gradientStops[index].remove()

Deletes this object.

Nothing.