...
The original range is from 0 to the width of the window. The target range is from 1-4. Now radius is transformed from original range to the target range.
Exercise 8
Modify the program so a small smiley orbits around he big smiley, in the direction of the mouse position.