-
-
Notifications
You must be signed in to change notification settings - Fork 18
draw_rectangle
CryoEagle edited this page Jan 12, 2019
·
1 revision
Draws rectangle with specified options
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
This function will draw simple rectangle in game.
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