Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!apple.com!parent From: parent@apple.com (Sean Parent) Newsgroups: comp.sys.mac.programmer Subject: Re: turning on a pixel Message-ID: <3735@internal.Apple.COM> Date: 21 Aug 89 18:08:50 GMT References: <6294@hubcap.clemson.edu> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 18 In article <6294@hubcap.clemson.edu> mikeoro@hubcap.clemson.edu (Michael K O'Rourke) writes: > I am writing a graphics program that turns on many pixels one at a time > by calculating some mathematical eqns. (kind of a fractal). It presently > is using : > > moveto(x,y); > lineto(x,y); The best aproach is to allocate an offscreen Bit/Pix Map and write your own command to set a pixel (this is rather trivial and could be made as a macro). Then copyBits the image to the screen when it is complete. If you wish to use the moveto, lineto approach then get the trap address and call them directly. You may also see some speed improvement if you hide the cursor first since lineto is just going to hide it anyway. Sean Parent