loadImage

Loads an image from a file, given by a string file name.

File names are relative to the location of the Basus program that loads them, so the images must be located in the same directory as the Basus program, or in a sub-directory.

Note that since the file name is relative to the location of the program, you cannot load an image unless you have first saved your program text somewhere.

Usage

    image1 = loadImage("background.png");
    image2 = loadImage("pictures/picture1.jpg");