size( 600,400 ); float h= height/13; // Height of stripe is 1/13 of window. float x=0, y=0; // for (int stripe=1; stripe<=13; ++stripe) { if (stripe % 2 == 0) fill(255); // White for even stripes. else fill(255,0,0); // Red for odd stripes. // rect(0,y, width,y+h); // Draw one stripe. fill(0); //-- text( stripe, 10, y+10); // y += h; // next stripe. } float xx=width*6/13, yy=height*6/13; fill(0,0,255); rect( 0,0, xx,yy); // STARS // float dx, dy; // Outer stars. dx= xx/6; dy= yy/5; y= dy/2; for (int row=1; row<=5; ++row ) { x= dx/2; for (int col=1; col<=6; ++col ) { fill(255); ellipse( x,y, 6,6); x += dx; } y += dy; } // Inner stars. y= dy; for (int row=1; row<=4; ++row ) { x= dx; for (int col=1; col<=5; ++col ) { fill(255); ellipse( x,y, 6,6); x += dx; } y += dy; }