- void setup() {
size(500,500,P3D);
smooth();
}
void draw() {
background(0);
fill(255);
noStroke();
for(int i = 0; i < 250000; i++) {
ellipse(int(random(1,499)), int(random(1,499)), 2, 2);
}
}
Also changing
- for(int i = 0; i < 5000; i++) {
ellipse(int(random(1,499)), int(random(1,499)), 2, 2);
}
Found it very interesting and thought I'd share :)
Maybe I've found the Higgs boson particle! It's hidden in Processing's (Java) random function. Where's my Nobel Prize? ;p