pub unsafe extern "C" fn canvas_draw_triangle(
    canvas: *mut Canvas,
    x: u8,
    y: u8,
    base: u8,
    height: u8,
    dir: CanvasDirection
)
Expand description

Draw triangle with given base and height lengths and their intersection coordinate

@param canvas Canvas instance @param x x coordinate of base and height intersection @param y y coordinate of base and height intersection @param base length of triangle side @param height length of triangle height @param dir CanvasDirection triangle orientation