Gradient Stop Info - Adobe 26001360 - Illustrator CS - PC Manual

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide

gradient stop info

Gradient stop information of a specific gradient, returned by the entire gradient property
of a gradient.
Table 4.27 gradient stop info — Properties
Property
color
midpoint
ramp point
Notes
When you get the entire gradient property of a gradient, a list of gradient stop
info records is returned, one record for each gradient stop in the gradient.
The gradient stops for a new gradient can be specified by providing a list of gradient stop
info records in the entire gradient property. The following applies when creating a
gradient from a list of gradient stop info records:
• a gradient stop's location in the gradient is determined by its ramp point value, not the
gradient stop info record's order in the entire gradient list.
• the midpoint value of the last gradient stop info record in the entire gradient list
is not used for the newly created gradient and need not be provided. If it is present, its
value must be in the valid range.
Example 17.1
This example shows how to create a circular CMYK gradient using a list of gradient stop info
records.
-- Create a new CMYK gradient with 4 gradient stops
property pGradientName : "CMYK Circle"
R/O
Value type
color info
real
real
12 Aug 03
What it is
The color linked to this
gradient stop
The midpoint of the blend
between this stop's and the next
stop's colors. range: 13.0–87.0;
default: 50.0
The location of the color in the
gradient as a percentage;
range: 0.0–100.0; default: 0.0
115

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents