Search
Brush Members
Constructors Properties Methods
 


Represents a brush.

The following tables list the members exposed by the Brush type.

 Public Constructors

  Name Description

Brush

Overloaded.  

 Public Properties

  Name Description

color

Gets or sets the color of this Brush object.

 Public Methods

  Name Description

apply

Applies the brush properties to a CanvasRenderingContext2D drawing object.

clone

Creates a copy of this brush.

equals

Determines whether the specified object is equal to this Brush.

fromObject

Returns a Brush from a JSON object or string describing this brush.

toObject

Returns a JSON object describing this brush.

 See Also