Skip to Content

Shadow

live Describes a drop shadow cast by an element.

Constructor

Shadow

live Describes a drop shadow cast by an element.

ParameterDescription
ColorThe color of the shadow.
OffsetXHorizontal offset of the shadow in logical pixels. Positive values move the shadow right.
OffsetYVertical offset of the shadow in logical pixels. Positive values move the shadow down.
BlurRadiusThe blur radius in logical pixels. A value of 0 produces a sharp shadow.

Properties

BlurRadius

The blur radius in logical pixels. A value of 0 produces a sharp shadow.

Color

The color of the shadow.

OffsetX

Horizontal offset of the shadow in logical pixels. Positive values move the shadow right.

OffsetY

Vertical offset of the shadow in logical pixels. Positive values move the shadow down.

Methods

Ambient

Creates a shadow with no offset and no blur.

ParameterDescription
colorThe shadow color.
blurThe blur radius.

Returns: A centered Shadow with the given color and blur.

Last updated on