
(watch what happens when it reaches 0)
Box(#CENTER, #CENTER, RectSize, RectSize/2, #WHITE, {rotate=CurrAngle,AnchorX=0.5,AnchorY=0.5})
Under certain circumstances it also glitches at 45, 90, 135 etc angles.
Full code here (sorry I messed up the formating of both hws files, please ignore my stylistic blunders).