Skip to main content

Module shadow_utils

Module shadow_utils 

Expand description

Utilities for drawing and computing drop shadows.

Structs§

ShadowFlags

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.