add animated line drawing function DrawLineAnimated