// myCircle class // *methods* // - boolean grow(double) // - void changeColor(int, int, int) // - void changeThickness(double) // - void draw() // // *variable* // - float centerX, float centerY, float centerZ; OR PVector center // - double radius // - int color // - int thickness class MyCircle { //field PVector center; float radius; int col; float thickness; //constructor MyCircle(PVector c, float r) { this.center = c; this.radius = r; this.thickness = 0.5; } boolean Grow(float deltaRad) { float temp =0; if(this.radius > 20) { temp = abs(this.radius - deltaRad); this.radius = temp; } else { temp = abs(this.radius + deltaRad); this.radius = temp; } return true; } void ChangeColor(int col) { this.col = col; } void ChangeThickness(float t) { this.thickness = t; } void Draw(float deltaMouse) { noStroke(); fill(col,max(min(500/(deltaMouse+0.1),100),0)+10); ellipse(center.x, center.y, (float)radius, (float)radius); } void Move(float x, float y) { this.center.x = x; this.center.y = y; } }