class BBug { int xPos; int yPos; color myCol; int maxTime = 100; int count = 0; BBug(int p_xPos, int p_yPos) { xPos = p_xPos; yPos = p_yPos; //myCol = new Color(random(0,1.0), random(0,1.0), random(0,1.0), .3); } void move() { if(count < maxTime) { count ++; xPos += int(random(-10,10)); yPos += int(random(-10,10)); //translate(xPos, yPos); fill(77,255,88,1); noStroke(); ellipse(xPos,yPos,10,10); } } }