Modify a text file: $/octopus.php
$/octopus.php
size( 400, 300 ); background(255); // Add up numbers int lo=1; int hi=100; int total=0; for (int n=lo; n<=hi; n++) { total += n; } fill(0); textSize(20); text( "Total from "+ lo +" \nto "+ hi +" \nis "+ total, 25, 25 ); //// Grass at the bottom. stroke(0,255,0); strokeWeight(3); float x; x=10; while( x < 400 ) { line( x,300, x,300-30 ); x= x + 20; } strokeWeight(0); fill(255,0,0); for( float z=10; z<400; z=z+20 ) { ellipse( z,300-30, 10,10 ); } fill( 200,0,200 ); ellipse( 150,100, 80,80 ); rect( 110,100, 80,80 ); stroke(200,0,200); strokeWeight(2); for (x=120; x<190; x+=10) { line( x,180, x,220 ); }