>>16807201
Regarding the animation:
–1 < θ/(π/4) < 3
(3*45 – 1/2) – (–1*45 + 1/2) + 1 = 180 frames
10 seconds
18 fps