Draws a rectangle between particular coordinates
(&mut self, x1: f32, y1: f32, x2: f32, y2: f32)
| 23 | /// Draws a rectangle between particular coordinates |
| 24 | /// |
| 25 | fn rect(&mut self, x1: f32, y1: f32, x2: f32, y2: f32) { |
| 26 | for d in draw_rect(x1, y1, x2, y2) { |
| 27 | self.draw(d); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | /// |
| 32 | /// Draws a circle at a particular point |