Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /