Skip to main content

draw_arrow

Function draw_arrow 

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

Draws a line from (x1, y1) to (x2, y2) with a triangular head at the end. The tip extends head_size past (x2, y2).