class Particle { float x,y,xoff; int stateCnt; // constructor for Particle class public Particle(float px,float py) { x=px*(width/9)+37; y=py*(height/9)+37; xoff = 0.0; stateCnt=1; } void draw() { xoff = xoff + .01; float n = noise(xoff) * width; line(x, y, x+random(10,20), y+random(10,20)); stroke(55); } }