Trait flo_canvas::GraphicsPrimitives
[−]
[src]
pub trait GraphicsPrimitives: GraphicsContext { fn rect(&mut self, x1: f32, y1: f32, x2: f32, y2: f32) { ... } fn circle(&mut self, center_x: f32, center_y: f32, radius: f32) { ... } }
GraphicsPrimitives adds new primitives that can be built directly from a graphics context
Provided Methods
fn rect(&mut self, x1: f32, y1: f32, x2: f32, y2: f32)
Draws a rectangle between particular coordinates
fn circle(&mut self, center_x: f32, center_y: f32, radius: f32)
Draws a circle at a particular point