Skip to main content

clipped

Function clipped 

pub fn clipped<R>(
    scene: &mut Scene,
    transform: Affine,
    clip: Rect,
    draw: impl FnOnce(&mut Scene) -> R,
) -> R
Expand description

Paint draw clipped to clip (under transform), in a layer of its own, so a region drawn as a part of its own carries its clip with it.