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 class-attribute instance-attribute #

color: ColorValue = BLACK

The shadow's color.

elevation class-attribute instance-attribute #

elevation: Number = 0

The shadow's elevation.

path class-attribute instance-attribute #

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

The list of elements describing the path of this shape.

transparent_occluder class-attribute instance-attribute #

transparent_occluder: bool = False

Whether the occluding object is transparent (not opaque).