line(color, start_x, start_y, end_x, end_y, opacity)
Directly draws a line to the screen without camera transformation. All parameters are required and keywords are not allowed. This keeps this function as fast as possible.
Parameters:
color
[value: positive unsigned RGB565 16-bit int or Color, type: uint16 | Color]
start_x
[value: any, type: float]
start_y
[value: any, type: float]
end_x
[value: any, type: float]
end_y
[value: any, type: float]
opacity
[value: 0.0 ~ 1.0, type: float]
Return Value: None
file: src/draw/engine_draw_module.c