renderer.rectangle
Draws a filled rectangle on the screen
renderer.rectangle(x: number, y: number, w: number, h: number, r: number, g: number, b: number, a: number)
Arguments
Name | Description | Type |
---|---|---|
x | Top left X coordinate | number |
y | Top left Y coordinate | number |
w | Width in pixels | number |
h | Height in pixels | number |
r | Red color component (0 to 255) | number |
g | Green color component (0 to 255) | number |
b | Blue color component (0 to 255) | number |
a | Alpha (opacity) component (0 to 255) | number |