Drawing Suite
401
Command: one color gradient
Sets the specified shape or fill format to a one-color gradient.
Syntax
one color gradient shape/fill format Required. An expression that returns a shape or fill format
object.
gradient style enumeration Required. The gradient style. Can be one of the following: gradient
unset, diagonal down gradient, diagonal up gradient, from center gradient, from corner
gradient, horizontal gradient, or vertical gradient. (The constant from title gradient is used
only in PowerPoint.)
gradient variant integer Required. The gradient variant. Can be a value from 1 to 4,
corresponding to the four variants on the Gradient tab in the Fill Effects dialog box. If
gradient style is from center gradient, this argument can be either 1 or 2.
gradient degree small real Required. The gradient degree. Can be a value from 0.0 (dark) to 1.0
(light).
Example
This example adds a rectangle with a one-color gradient fill to
myDocument
.
set myDocument to active document
make new shape at myDocument with properties ¬
{auto shape type:autoshape rectangle, left position:90, top:90 ¬
width:90,
height:80}
set fore color of fill format of shape 1 of myDocument to ({0, 128, 128} as ¬
RGB
color)
one color gradient shape 1 of newDoc gradient style horizontal gradient ¬
gradient variant 1 gradient degree 1
Command: patterned
Sets the specified fill to a pattern.
Syntax
patterned shape/fill format Required. An expression that returns a shape or fill format object.
pattern enumeration Required. The pattern to be used for the specified fill. Can be any of the
patterns listed under the pattern property of the
fill format
class.
Use the back color and fore color properties to set the colors used in the pattern.