Skip to main content

paint_diamond_filled

Function paint_diamond_filled 

Source
pub fn paint_diamond_filled(
    ui: &mut dyn UiBuilder,
    cx: f32,
    cy: f32,
    size: f32,
    color: [f32; 4],
)
Expand description

Paints a filled 4-point diamond centred at (cx, cy) with half-extent size. Adapter over [khora_tool_ui::widgets::diamond] (whose size is the full width), so the geometry is defined in exactly one place.