class Drop{ float centerX, centerY; float orbit, radius; float direction, angle; int step; int colHue, colSat; Drop(){ centerX = mouseX; centerY = mouseY; //centerX = width/2; //centerY = height/2; orbit = random(10,(width+height)/6); radius = random(10,30); direction = random(-PI, PI); angle = random(-PI*0.5, PI*0.5); if (angle == 0) angle = 0.1; while (abs(angle)<(PI/10)) angle *=10; step = 0; colHue = (int)random(0,count); colSat = (int)random(0,count); } boolean Paint(){ float rd = (radius/(count*count)) * step * step; float an = direction + ((angle/count) * step); float pX = centerX + (cos(an) * orbit); float pY = centerY + (sin(an) * orbit); if (stepcount); } }