MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / move_to

Method move_to

canvas/src/context.rs:40–40  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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))); }

Implementers 3

font_line_layout.rscanvas/src/font_line_layout.rs
context.rscanvas/src/context.rs
canvas.rscanvas/src/canvas.rs

Calls 1

drawMethod · 0.45