Adding Text

Creating a text box isn't that different from a shape, we declare it as an object.

        object title = new text
    

But a text object doesn't do anything until we write the actual text. For that we use the write method.

        object title = new text
          write My Pretty Picture
    

We can position it and paint it a different color (black is the defualt color).

        object title = new text
          write My Pretty Picture
          paint white
          move to 200, 10
    

fontSize

Next we may want to make the text larger. For this, we use the fontSize command.

        object title = new text
          write My Pretty Picture
          paint white
          move to 200, 10
          fontSize 20
    

More to come!