/* 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 x,y,j,a,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,w; // 900 color_equals(r[0]); basic_plot(x,y); grsim_update(); if (j==1) return; // 920 w=j/2; t=j-w-1; // 930 for(n=1;n<=w;n++) { if (x==a) { y2=y; x2=x+n; tooo(); x2=x-n; tooo(); continue; } if (y==b) { x2=x; y2=y+n; tooo(); y2=y-n; tooo(); continue; } y2=y; if (x