Glimmr Canvas-Based Drawing

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Tileset image-maps

    A tileset image-map is a kind of image-map.

    The specification of a tileset image-map is "A tileset image-map is specified using a list of lists of numbers called the 'tile-array'. Each row in the list is a list of numbers within the larger list of lists. The numbers used in the tile-array are keyed to figures via a 'tileset' (basically a translation table). A tileset image-map must be explicitly associated with a given tileset using the 'associated tileset' property.

    Authors should enter 0 in the tile-array to draw nothing in a given tile of the image map.

    The tileset object provides the dimensions in pixels used for each grid cell; if necessary, all images will be resized to fit into the provided dimensions. However, if we want an image-map to use differently sized tiles, we can specify the dimensions (in canvas units) to be used with the 'tile-width-override' and 'tile-height-override' properties.

    In order to take advantage of automated construction of 'linked command arrays' using the provided phrase, authors should include a 'linked command' column in the associated tileset of an image-map. This column specifies the text of the replacement command to be associated with the hyperlinked image."

    A tileset image-map has a tileset called the associated tileset. The associated tileset of a tileset image-map is the null tileset.

    A tileset image-map has a list of lists of numbers called the tile-array. The tile-array of a tileset image-map is {}.

    A tileset image-map has a number called the tile-width override. The tile-width override is 0.

    A tileset image-map has a number called the tile-height override. The tile-height override is 0.