[01 Oct 2011] Antialias Text Transparency Lost with Shadow
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 01 Oct 2011 00:34:26 -0000
Hi Andreas,
Here's an interesting effect (which you may already know about). Please test the following code:
Where the shadow is added, the text transparency is lost; but this only happens when the font style is set to #ANTIALIAS.
Hi Andreas,
Here's an interesting effect (which you may already know about). Please test the following code:
Code: Select all
@DISPLAY {Color=#WHITE, Layers=True}
SetFont(#SANS, 64, {Engine=#FONTENGINE_INBUILT})
SetFontStyle(#ANTIALIAS)
SetFontColor(ARGB(128, #RED))
TextOut(0, #CENTER, "This is a test.", {Name="TestLayer"})
WaitLeftMouse()
SetLayerStyle("TestLayer", {Text="This is a [shadow=$99000000,2,#SHDWSOUTHEAST]SHADOW[/shadow] test."})
Repeat
WaitEvent
Forever