Canvas

Canvas Tutorials

Canvas Methods and Properties

HTML canvas fillStyle Property

HTML canvas fillStyle Property

 

 

The fillStyle property sets or returns the color, gradient, or pattern used to fill the drawing.

 

Syntax:-

 

Its syntax is- context.fillStyle = "#00000";

 

Further Explanation:-

 

Value Description
color A CSS color value indicates the fill color of the drawing. Default value #000000
gradient A gradient object used to fill the drawing
pattern pattern object to use to fill the drawing

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas