Function fill_circle

Source
pub fn fill_circle(center: Vec2, radius: f32, fill: impl Into<Fill>)
Expand description

Filled, anti-aliased circle (up to 64 segments). Emits at most 612 vertices, or 2,592 for a radial fill that is not centered on the circle.

use ferravex_render::{Color, vec2, shapes::{self, Fill}};
let c = vec2(50., 50.);
shapes::fill_circle(c, 20., Fill::radial(c, 20., Color::new(1., 1., 1., 1.),
    Color::new(0.2, 0.4, 1., 1.)));