class splash{ float x; float y; float h; color c; splash(float tmph, color tmpc) { x = random(width); y = random(height); h = tmph; c = tmpc; } void render() { fill (c); noStroke(); //ellipse(x, y, h, h); //variableEllipse(mouseX, mouseY, pmouseX, pmouseY); } void variableEllipse(int x, int y, int px, int py) { float speed = abs(x - px) - abs(y - py); ellipse(x, y, speed, speed); } }