done to false,
to "prime" the while-loop. The while-loop executes over and over while the done variable is false.
d= line to be the distance of your mouse click to the origin, and the if statement to see if
this distance is $\le 20$ (the radius of the circle).