carnelian::drawing

Function path_for_corner_knockouts

Source
pub fn path_for_corner_knockouts(
    bounds: &Rect,
    corner_radius: Coord,
    render_context: &mut Context,
) -> Path
Expand description

Create a path for knocking out the points of a rectangle, giving it a rounded appearance.