This code keeps track of a circle’s position and size, and then uses the dist()
function to check whether the cursor position is inside that circle. If so, then the circle is either highlighted or repositioned depending on whether the mouse is currently pressed.
This is a companion discussion topic for the original entry at https://happycoding.io/examples/processing/input/draggable-circle