draw_rectangle_color(x1,y1,x2,y2,outline)
From YoYoGames Wiki
Description
Just like drawing a normal rectangle-we plot the two coordinates and choose if we want an outline. But this function also gives us the option to have colors at each corner.
Arguments
- x1 (real): horizontal start of the line.
- y1 (real): vertical start of the line.
- x2 (real): horizontal start of the line.
- y2 (real): vertical end of the line.
- c1 (real): top-left colour.
- c2 (real): top-right colour.
- c3 (real): bottom-right colour.
- c4 (real): bottom-left colour.
- outline (real): true / false. Whether the triangle is drawn as a thin line or filled in the current colour. [true=no fill / false = fill in current colour]
Remarks
- Must be in Draw Event or used with Surfaces.
See Also
Content from GMKB, was used to expand this article. The content was contributed by Yibbon(.com.au).

