Many of you will remember MacPaint as being one of the applications bundled with the first Macintosh computers. Apple has made the source code available via the Computer History Museum. It was written in beautiful Pascal (the wonderful language that I loved!) by Bill Atkinson.
(If you want to read more Macintosh history and anecdotes, check out Folklore.org by Andy Herzfeld).