Glimmr Canvas Editor

version 1/100805 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Part - Highlighting

    The current highlight image is a figure name that varies. The current highlight image is usually Figure of Highlight.

    To draw element-selection markers:
        repeat with selected-element running through the element-selection set:
            if the selected-element is a linkid listed in the Table of Graphlink Glulx Replacement Commands:
                if image highlighting is true:
                    display the current highlight image in g-win entry at (p-left entry) by (p-top entry) with dimensions (p-right entry minus p-left entry) by (p-bottom entry minus p-top entry);
                otherwise:
                    draw a box (color highlight-color) in (g-win entry) from (p-left entry) by (p-top entry) to (p-right entry) by (p-bottom entry) with 3 pixel line-weight, outlined;
        [unless sprite-scaling set is empty:
            if entry 1 of the sprite-scaling set is a linkid listed in the Table of Graphlink Glulx Replacement Commands:
                draw a rectangle with scaling-color stroke of 3 pixels in g-win entry from p-left entry by p-top entry to p-right entry by p-bottom entry, outlining;]