Move to a new point in the current path (paths should always begin with a move instruction, and moves can define subpaths)
(&mut self, x: f32, y: f32)
| 38 | |
| 39 | /// Move to a new point in the current path (paths should always begin with a move instruction, and moves can define subpaths) |
| 40 | fn move_to(&mut self, x: f32, y: f32) { self.draw(Draw::Path(PathOp::Move(x, y))); } |
| 41 | |
| 42 | /// Adds a line to the current path |
| 43 | fn line_to(&mut self, x: f32, y: f32) { self.draw(Draw::Path(PathOp::Line(x, y))); } |