Module shadow_utils
Expand description
Utilities for drawing and computing drop shadows.
Structs§
Functions§
- compute_
tonal_ colors - Helper routine to compute color values for one-pass tonal alpha.
- draw_
shadow - Draw an offset spot shadow and outlining ambient shadow for the given path using a disc light. The shadow may be cached, depending on the path type and canvas matrix. If the matrix is perspective or the path is volatile, it will not be cached.
- local_
bounds - Generate bounding box for shadows relative to path. Includes both the ambient and spot shadow bounds.