Skip to main content

arc_quad

Function arc_quad 

Source
pub fn arc_quad(
    center: (f32, f32),
    radius: f32,
    thickness: f32,
    start_deg: f32,
    sweep_deg: f32,
    rgba: [u8; 4],
) -> ((f32, f32, f32, f32), Vec<u8>)
Expand description

FillArcARC quad: ring segment of thickness along the circle of radius centered at center, from start_deg sweeping sweep_deg clockwise (0° = 3 o’clock, y-down), ROUND caps (the CPU path strokes with LineCap::Round). shape: (center in quad-local px); params: (radius, thickness, start_rad, sweep_rad) — sweep normalized non-negative here so the shader needs no sign handling.