Rectangles


rectangle.ss

The teachpack rectangle.ss provides all the operations that draw.ss provides and the following one:
  • show : (list-of (list-of COLOR)) -> void
    which consumes a rectangle (a list of list of colors) and draws a rectangle onto an open canvas.
  • The use of the operation is explained in more detail in section X.Y.