-
Notifications
You must be signed in to change notification settings - Fork 0
draw_rect_col
Rodrigo Gómez Maitret edited this page Sep 1, 2020
·
1 revision
Regular rectangle function, but uses width/height instead of absolute positions and takes color.
draw_rect_col(x, y, w, h, color, outline)
Parameter | Description |
---|---|
x | The rectangle's start X. |
y | The rectangle's start Y. |
w | The rectangle's width. |
h | The rectangle's height. |
color | The color for the rectangle. |
outline | Whether to draw only the perimeter or not. |
Returns: N/A
draw_rect_col(mouse_x, mouse_y, 16, 16, c_blue, true);
The code above will draw a rectangle under the mouse.
PoshoLib / Posho_Shapes / draw_rect_col