draw_rectangle - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
NOTOC {{-}} This function is part of the function set Drawing shapes
Draws a rectangle from point x1,y1 to point x2,y2 using brush color/alpha. Outline indicates whether to only outline the rectangle (true) or to fill it (false).
- x1,y1: The top-left coordinates of the rectangle in the room.
- x2,y2: The bottom-right coordinates.
- outline: Whether to draw only the outline (true), or to fill in the whole rectangle (false).
Unknown.
//Draws a green rectangle with a red outline
draw_set_color(c_green)
draw_rectangle(20,20,120,120,false) //Draws the body of the rectangle
draw_set_color(c_red)
draw_rectangle(20,20,120,120,true) //Draws the outline of the rectangle over the body