Properties for HTML5 Canvas to create shadows


HTML5 canvas provides capabilities to create nice shadows around the drawings. All drawing operations affected by the four global shadow attributes.

     Sr.No.
                                         Property and Description
1
shadowColor [ = value ]
This property returns the current shadow color and can be set, to change the shadow color.

2
shadowOffsetX [ = value ]
This property returns the current shadow offset X and can be set, to change the shadow offset X.

3
shadowOffsetY [ = value ]
This property returns the current shadow offset Y and can be set, change the shadow offset Y.

4
shadowBlur [ = value ]
This property returns the current level of blur applied to shadows and can be set, to change the blur level.

Updated on: 29-Jan-2020

87 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements