Use ECS while drawing curve.