setFillStyle(style: PP.Brush | Object | String, bounds_left: PP.Rect | Number, top: Number, width: Number, height: Number);
style. A brush, its settings object, gradient object or color string view.
bounds_left. Rectangle with brush gradient size or its left border. Optional parameter.
top. Top gradient border. Optional parameter
width. Gradient width. Optional parameter.
height. Gradient height. Optional parameter.
The setFillStyle method sets canvas element fill style.
The example of method use is given on the Example of Creating the Canvas Component page.
See also: