Add function to change line color based on mouse position

This would make a great interview question.