Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site amiga.amiga.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!pyramid!amiga!rj From: rj@amiga.UUCP (Robert J. Mical) Newsgroups: net.micro.amiga Subject: Mandelbrot INTUITICKS Message-ID: <470@amiga.amiga.UUCP> Date: Thu, 2-Jan-86 22:49:50 EST Article-I.D.: amiga.470 Posted: Thu Jan 2 22:49:50 1986 Date-Received: Sat, 4-Jan-86 06:25:06 EST Reply-To: rj@wizard.UUCP (Robert J. Mical) Distribution: net Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 50 Argh! In my version of Mandelbrot, I used an Intuition flag which some of you don't "know" about yet, since it's released only with the V1.1 system. It is the INTUITICKS flag, which is an IDCMP flag that allows you to receive cheap, dirty timer interrupts from Intuition. "Cheap" because you don't have to open a timer device to get interrupts, you only have to set a flag in the IDCMP. "Dirty" because you'll get interrupts *approximately* 10 times a second. I wouldn't think of using these interrupts for anything vaguely time-critical, since the time interval could vary up to 75% or so. To fix the program so that it will compile, add the following line to the end of the mand.h file: #define INTUITICKS 0x00400000 =RJ= Also, while I've got your attention, here's a few presets that the Amiga people have found (add these to the SetPresets() function near the end of mand.c): case 3: fputs("Mandelbrot Recursion\n", console); start_r.f = -0.294473; end_r.f = -0.288444; start_i.f = 0.012677; end_i.f = 0.014839; color_offset = 26; max_count = 30; break; case 4: fputs("Crackle\n", console); start_r.f = 0.225; end_r.f = 0.275; start_i.f = 0.8425; end_i.f = 0.8525; color_offset = 61; max_count = 31; break; case 5: fputs("Connections\n", console); start_r.f = 0.115206; end_r.f = 0.168190; start_i.f = -1.036059; end_i.f = -0.985386; color_offset = 76; color_inc = 2; break;