Skip to main content

drop_shadow_bounds

Function drop_shadow_bounds 

Source
pub fn drop_shadow_bounds(
    source: Rect,
    offset: Offset,
    sigma_x: f32,
    sigma_y: f32,
) -> Rect
Expand description

Bounds of a shadow plus the original source. The union is deliberately conservative and works for positive, negative, and fractional offsets.