background_add - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Loads an external image file and creates a new background resource to hold it.
- 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
Returns the index of the added background.
//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