Modify a text file: $/39/birdsbirds.java
$/39/birdsbirds.java
float x=100, y=100, w=50, h=10; int n=5; int r=0, g=0, b=255; void setup() { size(600, 400); } void draw() { background(255); x += 3; fill(255, 0, 0); fill(r,g,b); String comma=","; text( n+" birds ( " +r+comma+g+comma+b +")", 10, 10); fill( r, g, b ); for (int j=0; j<5; j++ ) { fill(0); birds( n ); } if (x>width) { x= 50; y= random( 20, height/2 ); w=50; h=10; n= int( random(3, 9) ); r= int( random(50,255) ); g= int( random(50,255) ); b= int( random(50,255) ); } } void birds( int n ) { //// Draw n birds float xx=x, yy=y, ww=w, hh=h; text( "( "+int(x) +", "+ int(y) +" )", 10, 25 ); fill( r, g, b ); for (int i=0; i