Fun with Gradients
Using John Kennedy's routine for drawing circles using only integer arithmetic ( https://www.conorpp.com/_sllu/bcircle.pdf ) Exponential growth of red-value : cirgrad = new SimpleImage( 200, 200 ); var p; var red=1; var rad=1 for( let x = 100; x < 255; x++) { plotCircle( cirgrad, 100,100,rad++,red); if( 0 == rad % 1 ) { red *= 1.07; } } print(cirgrad); Gives you : Stepped Linear Growth of red-value : for( let x = 100; x < 255; x++) { plotCircle( cirgrad, 100,100,rad++,red); if( 0 == rad % 15 ) { red += 25 ; } } Stepped Exponential Growth of red-value : for( let x = 100; x < 255; x++) { plotCircle( cirgrad, 100,100,rad++,red); if( 0 == rad % 10 ) { red *= 1.8; } } Looking in from the edge : var red=255; var rad=140 var cx = 100; var cy = 100;...