Skip to main content

corner_coverage

Function corner_coverage 

Source
fn corner_coverage(x: i32, y: i32, w: i32, h: i32, radius: f32) -> f32
Expand description

Rounded-rect coverage (0..=1) at pixel (x, y) for a w×h rect with corner radius (0 = square), anti-aliased over a 1-px band on the corner arcs.