Experimentation

Start simple.

  • If you want, remove the text-view. It actually slows things down.
  • In the function main, create multiple copies of the gui-view. This involves adding a new let-binding for each new object, and then adding each object as an observer to the model.
  • Change the labels of the two frames. The frames are defined as part of the controller% and view% classes.
  • Change the size of the frames. You should be able to change both their initial size as well as their minimum size. 
  • Change the range that the slider operates on. Instead of going from black to red, limit the range to something that goes from half- to full-intensity.
  • Change the color of the swatch. For example, have it explore the space of the color green, or blue, instead of red.


The purpose of this exploration is to reinforce the reading you and your partner did, and lets you see how the different parts of the code work.