🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #9550

Writing After Dark routines

#9550
From: Wayne Folta
Date: Sun, 14 Jan 1990 02:31
21 lines
1476 bytes
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)
Technical Details
Message-ID: <21811@mimsy.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!mimsy!tove.umd.edu!folta

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!mimsy!tove.umd.edu!folta
From: folta@tove.umd.edu (Wayne Folta)
Newsgroups: comp.sys.mac
Subject: Writing After Dark routines
Summary: Pretty easy
Message-ID: <21811@mimsy.umd.edu>
Date: 14 Jan 90 02:31:10 GMT
Sender: news@mimsy.umd.edu
Reply-To: folta@tove.umd.edu (Wayne Folta)
Distribution: usa
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 21