Skip to main content

canvas_bezier

Function canvas_bezier 

Source
pub fn canvas_bezier(
    x1: f32,
    y1: f32,
    cp1x: f32,
    cp1y: f32,
    cp2x: f32,
    cp2y: f32,
    x2: f32,
    y2: f32,
    r: u8,
    g: u8,
    b: u8,
    a: u8,
    thickness: f32,
)
Expand description

Draw a cubic Bézier curve stroke from (x1,y1) to (x2,y2) with two control points.