... and change a := and b:= to use real dimensions as opposed to w/180. You could use w:=a*180 instead if you want a quick magnifier :)