Applies the brush properties to a CanvasRenderingContext2D drawing object.
Namespace: MindFusion.Drawing
File: Brush.js
JavaScript Copy Code |
---|
function apply (context, bounds) |
Type: CanvasRenderingContext2D
The CanvasRenderingContext2D drawing object.
Type: Rect
The bounds of the gradient.