[comp.sys.mac] Writing After Dark routines

folta@tove.umd.edu (Wayne Folta) (01/14/90)

A while back, someone posted a question asking how difficult it is to write
After Dark graphics routines.  The answer is "fairly easy."  I am a Mac-
programming rookie, and it took me about two hours to come up with something
I liked...

You will need Inside Macintosh, or some guide to list the QuickDraw functions,
but that is all you need to concern yourself with.  If you just take their 
Bouncing Ball demo and mess with it things will work out pretty well.

Note that you can strip Bouncing Ball way down to start with.  For my own
experimenting, I stripped out the special-casing to detect Color QD, for
example.  The bouncing ball is also tricky because they must keep the ball 
"in bounds".  If you are just drawing things that don't travel around, the
clip region handles everything with no worries, so you can simplify things
there, too.  (My routine takes only three pages.)

You need MPW or THINK C or Pascal, and ResEdit.
--


Wayne Folta          (folta@cs.umd.edu  128.8.128.8)