[][src]Function imageproc::drawing::draw_polygon_mut

pub fn draw_polygon_mut<C>(canvas: &mut C, poly: &[Point<i32>], color: C::Pixel) where
    C: Canvas,
    C::Pixel: 'static, 

Draws as much of a filled polygon as lies within image bounds. The provided list of points should be an open path, i.e. the first and last points must not be equal. An implicit edge is added from the last to the first point in the slice.