Code: Select all
EnableLayers()
Line(50, 50, 150, 150, #WHITE, {Name="LineLayer", Thickness=10})
WaitLeftMouse()
SetLayerStyle("LineLayer", {AnchorX=0.5, AnchorY=0.5})
WaitLeftMouse()
SetLayerStyle("LineLayer", {Thickness=4}); Changing the thickness resets the AnchorX and AnchorY to 0.0