background_add - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Notation

Description

Loads an external image file and creates a new background resource to hold it.

Parameters

  • fname, file path with the file name where the background is located
  • removeback, whether or not to remove the background color if you are using a specific color for your alpha channel
  • smooth, whether or not to interpolate the pixels of the background

Return Values

Returns the index of the added background.

Example Call

    //The following example loads background.png and draws it at 0,0
    background1=background_add("/home/greg/background.png",0,0,1) ;
    draw_background(background1,0,0);

NOTOC

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