//ARRAY LISTADO
float [] y = new float[300];
float [] x = new float[300];
float [] tam = new float[300];
void setup() {
size(1080, 720);
for (int i=0; i<300; i+=1) {
x[i]=random(width);
y[i]=random(height);
tam[i] = random(10, 200);
}
noFill();
}
void draw() {
background(110);
for (int i=0; i<300; i+=1) {
ellipse(x[i], y[i], tam[i], tam[i]);
}
}
No comments:
Post a Comment