This is just a programming experiment. The arrow follows the cursor. The arrow says the distance between the line it casts and the center of the apple. If the distance is less than 50, the apple turns green. The grey line is the line cast by the arrow. The red line is the nearest path from the apple to the line cast by the arrow.