Drawing path in real-time