import processing.sound.*;
SoundFile song;
int n;
Circle[] ellipse;
float ty = 0;
float noiseScale = 0.02;
void setup() {
size(400,400);
song = new SoundFile(this, "mine.mp3");
song.loop();
n =100;
ellipse = new Circle[n];
for(int i=0; i<n; i++) {
ellipse[i] = new Circle(i);
}
}
void draw(){
background(0);
for(int i=0; i<n; i++) {
ellipse[i].display();
}
}
class Circle{
// float noise;
// //int index;
// color c;
Circle(int index) {
// //x = random(width);
// //y = random(height);
// //this.index = index;
// //noise = 0.0000000001;
// //int randomColor = int(random(1,4));
// // c = color(255, 255,255);
}
void display() {
//noStroke();
fill(130, 5);
float tx = 0;
for(int i = 0; i < width; i++) {
stroke(noise(tx,ty)*255*1.5, 255, 250);
// stroke(c);
ellipse(i, 150+noise(tx,ty)*250, 3, 3);
tx += map(i, 0, width, 0.00001, 0.1);
}
ty += map(20, 0, height, 0.00001, 0.1);
}
}
What is your question, exactly? What does it do, and what do you want it to do instead?