Draws a filled polygon via `rasops`.
(rasops: &mut R, points: &[PixelsXY])
| 357 | |
| 358 | /// Draws a filled polygon via `rasops`. |
| 359 | pub fn draw_poly_filled<R>(rasops: &mut R, points: &[PixelsXY]) -> io::Result<()> |
| 360 | where |
| 361 | R: RasterOps + ?Sized, |
| 362 | { |
| 363 | fill_polygon(rasops, points)?; |
| 364 | draw_poly(rasops, points) |
| 365 | } |
| 366 | |
| 367 | /// Draws a rectangle via `rasops` starting at `x1y1` with `size`. |
| 368 | pub fn draw_rect<R>(rasops: &mut R, x1y1: PixelsXY, size: SizeInPixels) -> io::Result<()> |