fn corner_coverage(x: i32, y: i32, w: i32, h: i32, radius: f32) -> f32
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.
w
h
radius