Function ratatui_canvas_line

Source
#[no_mangle]
pub extern "C" fn ratatui_canvas_line(
    handle: *mut c_void,
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64,
    r: u8,
    g: u8,
    b: u8,
)
Expand description

Draws a colored line from (x1, y1) to (x2, y2) on the pending canvas.

Coordinates are in data space (see ratatui_canvas_begin).