rect(color, top_left_x, top_left_y, width, height, outline, opacity)
Directly draws a rectangle 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]
top_left_x
[value: any, type: float]
top_left_y
[value: any, type: float]
width
[value: any, type: float]
height
[value: any, type: float]
outline
[value: any, type: boolean]
opacity
[value: 0.0 ~ 1.0, type: float]
Return Value: None
file: src/draw/engine_draw_module.c