Glimmr Drawing Commands

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next

  • Section: Rectangle

    The rectangle draws a simple field of color in the window, based on two defined points: the origin (upper left corner) and the endpoint (lower right corner). The basic format of the command is:

        draw a rectangle <color> in <window> from <origin> to <endpoint>

    Long forms:

        draw a rectangle (color g-SkyBlue) in the graphics-window from {120, 12} to {300, 24}.
        draw a rectangle (hex #87CEEB) in the graphics-window from 120 by 12 to 300 by 24.

    Short form:

        rectangle {120, 12} to {300, 24}.