Glimmr Canvas-Based Drawing

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Constructing a hyperlink set for a tileset image-map

    To construct/build graphic/-- hyperlinks/graphlinks array for (grid - a tileset image-map):
        now the linked command array of the grid is {};
        let L be a list of texts;
        repeat with current-row running through the tile-array of the grid:
            let L be {};
            repeat with index running through current-row:
                if index is a char listed in the translation-table of the associated tileset of the grid:
                    if there is a linked command entry:
                        add the linked command entry to L;
                    otherwise:
                        add "" to L;
                otherwise:
                    add "" to L;
            add L to the linked command array of the grid;
        #if utilizing Glimmr debugging;
         say "[>console][CBD]Constructed hyperlink command array for [grid] (a tileset image-map) from the translation-table of the tileset [associated tileset of the grid].[<]";
        #end if.