This program shows how to constrain the movements of an object. Move the mouse around the screen and note how the circle is constrained inside the rectangle.