Skip to main content

paint_material

Function paint_material 

pub fn paint_material(
    scene: &mut Scene,
    transform: Affine,
    shape: &impl Shape,
    material: Material,
    theme: &Theme,
)
Expand description

Paint a floating surface’s body: shape filled with material. Edges, shadows and content are drawn by the caller on top, exactly as on an opaque surface.