IBrush interface

Defines a brush as used to draw strokes.

Properties

color

The main color of the brush.

endArrow

Optional. The type of arrow at the end of a line drawn with the brush. Defaults to none.

tip

The shape of the brush's tip.

tipSize

The size of the brush's tip. Must be greater than 0.

type

The type of the brush.

Property Details

color

The main color of the brush.

color: IColor

Property Value

endArrow

Optional. The type of arrow at the end of a line drawn with the brush. Defaults to none.

endArrow?: ArrowType

Property Value

tip

The shape of the brush's tip.

tip: BrushTipShape

Property Value

tipSize

The size of the brush's tip. Must be greater than 0.

tipSize: number

Property Value

number

type

The type of the brush.

type: BrushType

Property Value