pub fn draw_hollow_ellipse_mut<C>(
    canvas: &mut C,
    center: (i32, i32),
    width_radius: i32,
    height_radius: i32,
    color: C::Pixel
) where
    C: Canvas
Expand description

Draws the outline of an ellipse on an image in place.

Draws as much of an ellipse as lies inside the image bounds.

Uses the Midpoint Ellipse Drawing Algorithm. (Modified from Bresenham’s algorithm)

The ellipse is axis-aligned and satisfies the following equation:

(x^2 / width_radius^2) + (y^2 / height_radius^2) = 1