Oh common think a bit. All you need to do is feed parameter that rotates from 180 to 360, that is easiest solution.