[comp.sys.mac.programmer] Starting out with MacGraphics

carlo@merlin.cvs.rochester.edu (Carlo Tiana) (03/26/90)

Dear veteran Mac programmers:
I am trying to start out programming my IIci, and wonder if anyone has some
sample code that does very simple things just to get me started. I am using
Think C 4.0 as development environment, and have wide experience of
graphics programming on other machines, but none on the Mac.

In particular, what I would love to get would be:
-a program that opens a window of specifiable size (dialog box would be
 just wonderful!) and writes a pixel of arbitrary color (colormap entry)
 to an arbitrary location. This should show me how to setr up a colormap
 with custom entries (I guess?) and show me what function writes a pixel to
 the screen.
-a program that does much of the same as the above but takes over the whole
 screen (menubar included -- except how do you quit out of that? maybe a
 specific key press).

If you could e-mail me such bits of code, I would be eternally grateful or
until my Mac bombs (whichever comes sooner).
Carlo.


carlo@cvs.rochester.edu