Here's why. Click many times in different places in the yellow area. Each time you click a ray of light shoots into the circle of the cup and is reflected from the inside surface of the cup. The incident ray is gray, the reflected ray is yellow. You will see the characteristic shape emerge: it is called a caustic curve.
Clicking in the red area clears the drawing space.