Function push_ring_progress_scaled

Source
pub fn push_ring_progress_scaled(
    out: &mut Vec<RingProgressVertex>,
    w: f32,
    h: f32,
    scale: Scale,
    ring: DrawRingProgress,
)
Expand description

Appends a circular-progress SDF quad in physical-pixel geometry.

Empty bounds append nothing. Thickness is clamped to half the smaller axis, fraction to [0, 1], and the start angle is preserved in radians.

ยงExamples

use ailloli_ui_core::math::Scale;
use ailloli_ui_render_wgpu::passes::push_ring_progress_scaled;
use ailloli_ui_runtime::DrawRingProgress;
fn build(ring: DrawRingProgress) { let mut out = Vec::new(); push_ring_progress_scaled(&mut out, 100.0, 100.0, Scale::new(1.0), ring); assert!(out.is_empty() || out.len() == 6); }