...
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. Create a new programme where a simple car follows the mouse on the screen. The car should be drawn from the side, and include wheels that rotate.