Computer >> Computer tutorials >  >> Programming >> Javascript

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
1shadowColor [ = value ]This property returns the current shadow color and can be set, to change the shadow color.
2shadowOffsetX [ = value ]This property returns the current shadow offset X and can be set, to change the shadow offset X.
3shadowOffsetY [ = value ]This property returns the current shadow offset Y and can be set, change the shadow offset Y.
4shadowBlur [ = value ]This property returns the current level of blur applied to shadows and can be set, to change the blur level.