Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!ephemeral.ai.toronto.edu!dudek From: dudek@ai.toronto.edu (Gregory Dudek) Newsgroups: comp.sys.mac.programmer Subject: Re: Moire screen saver algorithm wanted Message-ID: <89Dec1.165641est.10984@ephemeral.ai.toronto.edu> Date: 1 Dec 89 21:57:27 GMT References: <1729@hiatus.dec.com> Organization: Department of Computer Science, University of Toronto Lines: 13 >> I am looking for the algorithm that is used in the Moire screen >> saver to plot objects on the screen. I don't need the calls to >> draw the objects, but the code that figures out: >> [etc.] One quick and dirty way to get moire line segments is to just make the endpoints bounce around the screen independently. By connecting these aand erasing the ones than were drawn N iterations ago, nice moire patterns result. You also can make the endpoints change velocity & direction and random times instead of bouncing. Greg Dudek