Move the mouse left and right to shift the balance. The "mouseX" variable is used to control both the size and color of the rectangles.
Original Processing.org Example: Mouse1D