Here I can\'t able to draw the text on the mouse move event. But when I try to clear the text on the mouse move event, it\'s not getting cleared and clearing all 2D objects.