Canvas

Canvas Tutorials

Canvas Methods and Properties

HTML canvas shadowOffsetY Property

HTML canvas shadowOffsetY Property

 

 

The shadowOffsetY property is used to sets or return the vertical distance of the shadow from the shape.

 

For your Information:-

 

When shadowOffsetY=0, it suggests that the shadow is right behind the shape.
When shadowOffsetY=10, it suggests that the shadow starts 10 pixels below the shape start position.
When shadowOffsetY=-10, it suggests that the shadow starts 10 pixels above the shape start position.

 

Syntax:-

 

Its syntax is:- context.shadowOffsetY = value;

 

Further Explanation:-

 

Value Description
number A positive or negative number that defines the vertical distance of the shadow from the shape

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas