Glimmr Canvas-Based Drawing

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next

  • Chapter - Element Drawing

    Drawing the active elements of something is an activity.

    [These are global variables that are set by the drawing the active elements of something activity. In most cases, authors should not set these directly.]
    The current element is a g-element variable.
    The current window is a g-window variable.

    Last for drawing the active elements of a graphics g-window (called win) (this is the default active element drawing rule):
        now the current window is win;
        let L be the list of display-active g-elements displayed on the associated canvas of the current window;
        prune the link-table of win links;
        sort L in display-layer order;
        repeat with current-element running through L:
            follow the element scaling rules for current-element;
            follow the element display rules for current-element;