Experiment in Processing using random quads.
Source:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
void setup() { size(800, 800); noStroke(); smooth(); background(0); for (int i=0; i<1000; i++) { fill(int(random(0,255)), int(random(0,255))); int c1w = int(random(0,width)); int c1h = int(random(0,height)); int c2w = int(random(0,width)); int c2h = int(random(0,height)); int c3w = int(random(0,width)); int c3h = int(random(0,height)); int c4w = int(random(0,width)); int c4h = int(random(0,height)); quad(c1w,c1h, c2w,c2h, c3w,c3h, c4w,c4h); } } |