Skip to main content

push_rounded_rect_quad

Function push_rounded_rect_quad 

Source
pub fn push_rounded_rect_quad(
    out: &mut Vec<Vertex>,
    x: f32,
    y: f32,
    w: f32,
    h: f32,
    radius: f32,
    color: Color,
)
Expand description

Append six vertices for a uniformly-rounded rectangle (SDF).

The quad is inflated by 1 px on all sides to avoid clipping the AA rim.