Skip to content

draw_rect_col

Rodrigo Gómez Maitret edited this page Sep 1, 2020 · 1 revision

Description

Regular rectangle function, but uses width/height instead of absolute positions and takes color.

Syntax

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

Example

draw_rect_col(mouse_x, mouse_y, 16, 16, c_blue, true);

The code above will draw a rectangle under the mouse.

Map

PoshoLib / Posho_Shapes / draw_rect_col

Functions
Objects
Simplifications
Macros
Clone this wiki locally