Animation of pidfs algorithm