Drawing

Just for fun (and because I'm told every tutorial should have a drawing program) here is a simple drawing program. It is more interesting as an application. There you have menus for selecting different types of glyphs to draw and different colors to draw them with. Notice how the packer behaves as you draw glyphs. Just point, grunt, and drag.

Look at the source to see another use for handling events.

Exercises

  1. Like an Etch-A-Sketch NeoDraw will not save files. Add this feature.
  2. Add a selection mode to the Glyph menu. Then add a Delete command to the Edit menu to delete the selected Glyph.

Next: TieredNeoMaps