/* Matt Martell IAT 800 - Dr. Christopher Shaw Due Oct. 6, 2008 A2-06 - Write a function with three or more parameters and visually demonstrate its flexibility. */ void setup() { background (3444); size(500-(500-x),500-(500-x)); smooth(); stroke(230,230,250); frameRate(4); } int x = int (random(0,500)); int a = int (random(x)); int b = int (random(x)); int colorA = 124; int colorB = 224; void draw() { fill(224,255,255,25); rect(random(x),random (x),15,15); drawBox (a,b,x); } void drawBox (int a,int b,int x) { fill (colorA, colorA, colorA); rect (random(a), random (b),15,15); fill (colorB, colorA, colorB); rect (random(x), random (a),10,10); }