pub unsafe extern "C" fn canvas_draw_triangle(
canvas: *mut Canvas,
x: i32,
y: i32,
base: usize,
height: usize,
dir: CanvasDirection,
)Expand description
Draw triangle with given base and height lengths and their intersection coordinate
ยงArguments
canvas- Canvas instancex- x coordinate of base and height intersectiony- y coordinate of base and height intersectionbase- length of triangle sideheight- length of triangle heightdir- CanvasDirection triangle orientation