Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sunybcs!uhura.cc.rochester.edu!merlin.cvs.rochester.edu!carlo From: carlo@merlin.cvs.rochester.edu (Carlo Tiana) Newsgroups: comp.sys.mac.programmer Subject: Starting out with MacGraphics Summary: Sample code, anyone? Message-ID: <6096@ur-cc.UUCP> Date: 26 Mar 90 04:53:47 GMT Sender: news@uhura.cc.rochester.edu Reply-To: carlo@cvs.rochester.edu (Carlo Tiana) Distribution: na Organization: Univ. Roch. Center for Visual Sci. Lines: 22 References: 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