Struct orbclient::graphicspath::GraphicsPath
[−]
[src]
pub struct GraphicsPath { pub points: Vec<(i32, i32, PointType)>, // some fields omitted }
graphic path with similar functions like html canvas
Fields
points: Vec<(i32, i32, PointType)>
Methods
impl GraphicsPath
[src]
fn new() -> GraphicsPath
fn move_to(&mut self, x: i32, y: i32)
move to position
fn line_to(&mut self, x: i32, y: i32)
create a line between the last and new point
fn quadratic_curve_to(&mut self, argx1: i32, argy1: i32, argx2: i32, argy2: i32)
quadratic bezier curve
fn bezier_curve_to(&mut self,
argx1: i32,
argy1: i32,
argx2: i32,
argy2: i32,
argx3: i32,
argy3: i32)
argx1: i32,
argy1: i32,
argx2: i32,
argy2: i32,
argx3: i32,
argy3: i32)
cubic bezier curve