Glimmr Canvas-Based Drawing

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Part - Adding figures to an image-map array using internal coordinates

    To place/add tile/-- (tile - a number) at internal/-- coordinate/coordinates/-- (internal-coordinates - a list of numbers) of/in (grid - a tileset image-map):
        let x be entry 1 of the internal-coordinates;
        let y be entry 2 of the internal-coordinates;
        now entry x of entry y of the tile-array of the grid is the tile.
            
    To place/add figure/-- (tile - a figure name) at internal/-- coordinate/coordinates/-- (internal-coordinates - a list of numbers) of/in (grid - a direct image-map):
        let x be entry 1 of the internal-coordinates;
        let y be entry 2 of the internal-coordinates;
        now entry x of entry y of the figure-array of the grid is the tile.