int dimx = 400; int dimy = 600; float inc = 0.00; int divs = 8; int lens[] = new int[divs]; BFont mFont; String message = "there aren't enough cookies in the cookie jar to fill your evil heart."; void setup () { size(dimx, dimy); background(0); rectMode(CORNER); stroke( 255, 255,255, 128 ); for ( int i = 0 ; i < divs ; i ++ ) { lens[i] = 2; } fill ( 192, 64, 64, 128 ); translate( dimx/2, dimy / 2 ); rotateX(0.2); mFont = loadFont ( "Base_5.vlw" ); textFont(mFont, 18); } void loop () { translate( dimx/2, dimy * 0.90 ); rotateX(0.2); background(0); push (); rotateY ( PI / 8.0); inc+= 0.003; for ( int i = 0; i < 8 ; i++ ) { push(); rotateY( i * TWO_PI / float(divs) ); translate (0 , 0 , -12 ); for (int j = 0 ; j < lens[i]; j++ ) { noStroke(); fill ( 192, 64, 64, 128 ); rect(-5, 0, 10, -20 ); fill ( 255, 192, 192, 128 ); text(message.charAt(j), -5, -5 ); stroke( 255, 255,255, 128 ); line(-5, 0, 5 , 0 ); translate(0, -20, 0); rotateX( (0.01 + j * 0.12 ) * ( 0.53 - noise( j * 0.02 , i * 0.1 , inc ) ) ); } if ( lens[i] < 40 && random (0,1) < 0.05 ) lens[i]++; pop(); } pop(); } class Cell { }