Skip to main content

card

Function card 

pub fn card(
    scene: &mut Scene,
    transform: Affine,
    rect: Rect,
    radius: f64,
    fill: AlphaColor<Srgb>,
)
Expand description

Fill a card / row / tile and give it its derived rest edge in one call — the one way an app or shell surface paints an edged surface. The edge derives from fill itself: a stroke that sits entirely on the surface needs no knowledge of what is behind it.