Skip to content

Shadow

Inherits: Shape

Draws a shadow for a path representing the given material elevation.

Note

The transparent_occluder argument should be True if the occluding object is not opaque.

Properties

Properties#

color #

color: ColorValue = BLACK

The shadow's color.

elevation #

elevation: Number = 0

The shadow's elevation.

path #

path: list[PathElement] = field(default_factory=list)

The list of elements describing the path of this shape.

transparent_occluder #

transparent_occluder: bool = False

Whether the occluding object is transparent (not opaque).