Canvas Tutorials

Canvas Methods and Properties

HTML canvas shadowColor Property

HTML canvas shadowColor Property



The shadowColor property sets or returns the color to use for shadows.  We have to use the shadowColor property and the shadowBlur property together to create a shadow.




Its syntax is:- context.shadowColor = "color";


Further Explanation:-


Value Description
color The CSS color value to use for shadows. The default value is #000000

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas