draw_rectangle(x1,y1,x2,y2,outline)
From YoYoGames Wiki
Description
Draws a rectangle that spans between (x1,y1) for its first corner and (x2,y2) for its final corner.
Arguments
- x1 (real): horizontal position of first point.
- y1 (real): vertical position of first point.
- x2 (real): horizontal position of second point.
- y2 (real): vertical position of second point.
- outline (real): true / false. Whether the triangle is drawn as a thin line or filled in the current color. [true=no fill / false = fill in current color]
Explanation
Draws a rectangle that spans between (x1,y1) for its first corner and (x2,y2) for its final corner. Outline is whether or not the shape will be drawn as an outline, if it is true, the shape will be drawn as an outline, if false, it will be drawn as a full solid object.
Remarks
- Must be in Draw Event or used with Surfaces.

