Draw Rectangle Color

Draws a rectangle. The four colors indicated the colors at the top-left, top-right, bottom-right, and bottom-left vertex. outline indicates whether only the outline must be drawn (true) or it should be filled (false).

Example

draw_rectangle_color(0,0,room_width,room_height,c_red,c_yellow,c_green,c_blue,true);

This will draw a rectangle the size of the room with the colors red, yellow, green and blue.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License