Contents

shadowOffsetX

A floating-point number that controls the horizontal offset of shadows from the elements casting the shadows.

Declaration

attribute unrestricted float shadowOffsetX;

Discussion

Shadows are cast shadowOffsetX pixels to the right, regardless of the canvas rotation, scale, or transformation. If shadowOffsetX is negative, shadows are cast to the left.

Shadows are cast if shadowOffsetX is nonzero and the alpha value of shadowColor is nonzero.

See Also

Working with Shadows