Skip to main content

draw_filled_circle_mut

Function draw_filled_circle_mut 

Source
pub fn draw_filled_circle_mut<C>(
    canvas: &mut C,
    center: (i32, i32),
    radius: i32,
    color: C::Pixel,
)
where C: Canvas,
Expand description

An in-place version of draw_filled_circle().

This function does the same operation as draw_filled_circle() but on the &mut image passed rather than cloning an &image. This is faster but you lose the original image.