Skip to main content

draw_line

Function draw_line 

Source
pub fn draw_line(
    x1: f32,
    y1: f32,
    x2: f32,
    y2: f32,
    thickness: f32,
    color: Color,
)
Expand description

Draws a line segment from (x1, y1) to (x2, y2).

ยงExamples

draw_line(0.0, 0.0, 200.0, 150.0, 4.0, WHITE);