Adobe InDesign CS6 (8.0) Object Model JS: ScriptUIBrush

InDesign CS6

Class

ScriptUIBrush

 

A painting brush that encapsulates a color or pattern used to fill paths.

Create with ScriptUIGraphics.newBrush(). Use as a value of  backgroundColor properties, and pass as an argument to the fillPath() method.

Properties

PropertyTypeAccessDescription
colorArray of Number readonlyThe brush 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.
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.
typeNumber readonlyThe brush type, solid or theme.
One of these constants: ScriptUIGraphics.BrushType.SOLID_COLOR or ScriptUIGraphics.BrushType.THEME_COLOR

Element of

ScriptUIGraphics.backgroundColor

ScriptUIGraphics.disabledBackgroundColor

Used in:

void ScriptUIGraphics.fillPath (brush: ScriptUIBrush[, path: ScriptUIPath])

Return

ScriptUIBrush ScriptUIGraphics.newBrush (type: Number, color: Array of Number | String)

Jongware, 28-Apr-2012 v3.0.3hContents :: Index