MacPaint and QuickDraw Source Code
July 20, 2010 12:41 AM Subscribe
MacPaint and QuickDraw Source Code - The
Computer History Museum and Apple, Inc. release the source code to one of the first major drawing tools and graphical libraries for personal computers, one that managed to fit inside a paltry 128 KB of memory.
"One of the earliest bits of software that made the original Macintosh computer so interesting to use and unusual for its time was a drawing program called MacPaint.
"Released in 1984 with the Mac, it is fondly remembered not only by those who used it, but also by computer scientists for numerous first-of-a-kind innovations. Those who spend a lot of time using Adobe Photoshop constantly use such features as the lasso tool for selecting non-rectangular shapes, and the paint bucket for filling closed areas with a pattern, and later, color. Both first appeared in MacPaint. The program was unique at the time for its ability to create graphics that could then be used in other applications."
Its
memory constraints were so tight that its designers uncovered bugs in the underlying platform:
"At the worst case, there was only about 100 bytes free in MacPaint's heap. Most of the bugs we encountered when running MacPaint turned out to be bugs in the underlying system, which were exposed by running so close to the edge of available memory.
"It's interesting to note that MacPaint was a rather small program by today's standards, but I guess that it had to be to run in the Mac's one eighth of a megabyte of memory. The finished MacPaint consisted of 5,804 lines of Pascal code, augmented by another 2,738 lines of assembly language, which compiled into less than .05 megabytes of executable code."
posted by Blazecock Pileon (64 comments total)
53 users marked this as a favorite
posted by hattifattener at 12:45 AM on July 20, 2010 [4 favorites]