/* Our shape class defines a basic object with a location (x, y) and a size (s). Each shape also has a shake() method, whichs adds a random component of movement. */ class Shape { float x; float y; float s; Shape(float x_, float y_, float s_) { x = x_; y = y_; s = s_; } void shake() { x += random(-1, 1); y += random(-1, 1); } }