/* Based on code from "32 BASIC Programs for the Apple Computer" */ /* by Tom Rugg and Phil Feldman */ #include #include #include #include "gr-sim.h" static int r[11]; static int xx,yy,j,aa,b,x2,y2,n; static void tooo(void) { color_equals(r[n]); basic_plot(x2,y2); grsim_update(); return; } static void noo(void) { //int t; int w; // 900 color_equals(r[0]); basic_plot(xx,yy); grsim_update(); if (j==1) return; // 920 w=j/2; //t=j-w-1; // 930 for(n=1;n<=w;n++) { if (xx==aa) { y2=yy; x2=xx+n; tooo(); x2=xx-n; tooo(); continue; } if (yy==b) { x2=xx; y2=yy+n; tooo(); y2=yy-n; tooo(); continue; } y2=yy; if (xx