Skip to main content

Shadow

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.

Inherits: canvas.Shape

Properties

  • color - The shadow's color.
  • elevation - The shadow's elevation.
  • path - The list of elements describing the path of this shape.
  • transparent_occluder - Whether the occluding object is transparent (not opaque).

Properties

colorclass-attributeinstance-attribute

The shadow's color.

elevationclass-attributeinstance-attribute

elevation: Number = 0

The shadow's elevation.

pathclass-attributeinstance-attribute

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

The list of elements describing the path of this shape.

transparent_occluderclass-attributeinstance-attribute

transparent_occluder: bool = False

Whether the occluding object is transparent (not opaque).