/** * Aether Colors * by Xavier Gouchet (2008) **/ // Canvas Size int width = 512; int height = 512; // Frames float time = 0; float limit = 512; // Static variables float pi = 3.14159265; float d2r = (2*pi)/360.0; // Font PFont fontA = createFont("Courier", 12); // random variables // Coloring Mode int sat = (round(random(100))%2)*220; int val = 255; int bg = (round(random(100))%2)*255; int fg = 255 - bg; // Speed float l1 = random(10); float l2 = random(10); float l3 = random(10); float l4 = random(10); // Size float s1 = max(width/32,width/3); float s2 = max(height/32,height/3); float s3 = max(width/32,width/3); float s4 = max(height/32,height/3); // Position float p1 = random(s1, width-s1); float p2 = random(s2, height-s2); float p3 = random(s3, width-s3); float p4 = random(s4, height-s4); void setup(){ size(width,height); background(bg); frameRate(60); smooth(); if (sat==0) { val = fg; } } void draw(){ if (time