natives.drawRect
natives.drawRect
Signature: void natives.drawRect(Vec2 position, Vec2 size, int r, int g, int b, int a)
Usage: Draws a rectangle on the screen with the specified position, size, and color
Parameters
- Vec2 position Normalized screen coordinates (0.0–1.0) for the rectangle’s center
- Vec2 size Rectangle size relative to screen (width, height)
- int r Red color value (0–255)
- int g Green color value (0–255)
- int b Blue color value (0–255)
- int a Alpha transparency value (0–255)
Return
void
On failure: void