Adobe Illustrator CS6 Type Library JS: ScriptUIPen

Illustrator CS6

Class

ScriptUIPen

 

A drawing pen that defines a color and line width used to stroke paths.

Create with ScriptUIGraphics.newPen(). Use as a value of foregroundColor properties, and pass as an argument to drawString() and strokePath() methods.

Properties

PropertyTypeAccessDescription
colorArray of Number readonlyThe pen color.
The paint color to use when the type is SOLID_COLOR. An array in the form [R, B, G, A] specifying the red, green, blue values of the color and the opacity (alpha channel) value as numbers in the range [0.0..1.0]. An opacity of 0 is fully transparent, and an opacity of 1 is fully opaque.
lineWidthNumber (min: 1) r/wThe pixel width of the drawing line.
themeString readonlyThe theme name.
The name of a color theme to use for drawing when the type is THEME_COLOR. Theme colors are defined by the host application.
typeString readonlyThe pen type, solid or theme.
One of these constants: ScriptUIGraphics.PenType.SOLID_COLOR or ScriptUIGraphics.PenType.THEME_COLOR

Element of

ScriptUIGraphics.disabledForegroundColor

ScriptUIGraphics.foregroundColor

Used in:

void ScriptUIGraphics.drawString (text: String, pen: ScriptUIPen, x: Number, y: Number[, font: ScriptUIFont])

void ScriptUIGraphics.strokePath (pen: ScriptUIPen[, path: ScriptUIPath])

Return

ScriptUIPen ScriptUIGraphics.newPen (type: Number, color: Array of Number | String, width: Number)

Jongware, 25-Nov-2012 v3.0.3iContents :: Index