background_create_color(w,h,col)
From ENIGMA
Description
Creates a rectangle background consisting of one color.
Parameters
| Parameter | Description |
|---|---|
| w | width of the new background |
| h | height of the new background |
| col | color to fill the new background with |
Return Values
integer: Returns the index of the new background created from color
Example Call
//The following example creates a green 400px by 400px background and then draws it
mybg = background_create_color(400, 400, c_green, 1);
draw_background(mybg, 0, 0);
mybg = background_create_color(400, 400, c_green, 1);
draw_background(mybg, 0, 0);