Adobe 26001360 - Illustrator CS - PC Manual page 335

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

Advertisement

Adobe Illustrator CS Scripting Guide
Table 5.39 GradientColor — Properties (Continued)
Property
HiliteLength
Length
Matrix
Origin
Notes
A GradientColor can be created using a reference to an existing gradient in the
application. If no existing gradient object is referenced, a default gradient will be supplied. An
origin is used to specify the center point of the gradient in this specific gradient color. Single
values are used to specify the gradient vector angles and lengths. A matrix may be specified to
further transform the gradient color.
Example 22.1
The following script obtains the gradient called "Black, White Radial" from the current
document and changes the color of the first gradient stop. The Gradient "Black, White Radial" is
one of the default gradients that appear when you create a new Illustrator document.
Dim appRef As New Illustrator.Application
Dim frontDocument As Illustrator.Document
Dim firstGradient As Illustrator.Gradient
Set frontDocument = appRef.ActiveDocument
'Get a reference to the gradient that you want to delete
Set firstGradient = frontDocument.Gradients("White, Black Radial")
'Create the new color
Dim startColor As New Illustrator.RGBColor
startColor.Red = 255
startColor.Green = 238
startColor.Blue = 98
firstGradient.GradientStops(1).Color = startColor
R/O
Value type
Double
Double
Matrix object
Variant Array (of 2
Doubles)
12 Aug 03
What it is
The gradient hilite vector length
The gradient vector length
An additional transformation matrix to
manipulate the gradient path
The gradient vector origin
335

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents