background_create_color - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Notation

Description

Creates a rectangle background consisting of one color.

Parameters

  • w: width of the new background
  • h: height of the new background
  • col: color to fill the new background with

Return Values

int: 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);

NOTOC

⚠️ **GitHub.com Fallback** ⚠️