INNER CODE UNIT · Rust
draw_circle
plotters-rs/plotters · plotters-backend/src/lib.rs:197
fn draw_circle<S: BackendStyle>(
&mut self,
center: BackendCoord,
radius: u32,
style: &S,
fill: bool,
) -> Result<(), DrawingErrorKind<Self::ErrorType>> {
rasterizer::draw_circle(self, center, radius, style, fill)
}
fn fill_polygon<S: BackendStyle, I: IntoIterator<Item = BackendCoord>>(
&mut self,
vert: I,
style: &S,
) -> Result<(), DrawingErrorKind<Self::ErrorType>> {
let vert_buf: Vec<_> = vert.into_iter().collect();
rasterizer::fill_polygon(self, &vert_buf[..], style)