Glimmr Canvas Editor

version 1/100805 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Command for drawing a primitive

    Drawing a primitive is an action applying to one value. Understand "draw a [g-primitive]" or "draw [g-primitive]" as drawing a primitive.

    Carry out drawing a primitive:
        now the element-selection set is {};
        follow the window-drawing rules for the working window;
        say "Click in the editor window to set [if the g-primitive understood is line]one end[otherwise]one corner[end if] of the [g-primitive understood].";
        now drawing mode is true;
        make active the button of the g-primitive understood;
        follow the window-drawing rules for the drawing-window;
        follow the window-drawing rules for the help-window;
        change the currently drawn element to the progenitor of the g-primitive understood;
        suspend line input.