Code: Select all
EnableLayers()
TextOut(#CENTER, #CENTER, "Test", {Name="TextLayer", AnchorX=0.5, AnchorY=0.5})
SetLayerStyle("TextLayer", {Font=#SANS})
WaitLeftMouse()
SetLayerStyle("TextLayer", {FontSize=76})
WaitLeftMouse()
SetLayerStyle("TextLayer", {Color=RGB(0, 0, 255)})
WaitLeftMouse()
SetLayerStyle("TextLayer", {Color=ARGB(128, RGB(0, 0, 255))}); This line doesn't affect the transparency.
WaitLeftMouse()
SetLayerStyle("TextLayer", {Align=#CENTER}); This line causes it to revert to the original color.
WaitLeftMouse()