class ColorSquare { float xpos, ypos, squareSize; color c; ColorSquare(float xpos_, float ypos_, float squareSize_, color c_) { xpos = xpos_; ypos = ypos_; c = c_; squareSize = squareSize_; } void render() { noStroke(); fill(c); rectMode(CENTER); rect(xpos, ypos, squareSize, squareSize); } }