Skip to content

draw_rectangle

CryoEagle edited this page Jan 12, 2019 · 1 revision

draw_rectangle

Draws rectangle with specified options

Syntax:

draw_rectangle(p1, p2, outline, angle)
Argument Description
Vector2 p1 First position
Vector2 p2 Second position
bool outline Set outline on or off
double angle Rotating rectangle, not required

Returns: void

Description:

This function will draw simple rectangle in game.

Example:

draw_rectangle(new Vector2(Position.X-50,Position.Y-50), new Vector2(Position.X+50,Position.Y+50),true, 120);

Draw rectangle with 100px width and 100px height and add some rotation.

Back to Shapes

Clone this wiki locally