Glimmr Drawing Commands

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Short form of tileset image map

    To image-map (IMG_MAP - a list of lists of numbers) at (COORD1 - a list of numbers) width/w (WDT - a number) tileset (TSET - a tileset) tile-size/size (W - a number) by/x (H - a number) pixel/pixels/px/--, backgrounded:
        if the type of the current graphics window is g-graphics:
            let x1 be entry 1 of coord1;
            let y1 be entry 2 of coord1;
            if backgrounded:
                display an image-map in (current graphics window) at (X1) by (Y1) using (IMG_MAP) rendered using (TSET) with tile-size (W) by (H) and background (current background-color);
            otherwise:
                display an image-map in (current graphics window) at (X1) by (Y1) using (IMG_MAP) rendered using (TSET) with tile-size (W) by (H);
        otherwise:
            say "*** Error: Short-form image-map drawing directive ignored. The current graphics window global was not correctly specified."