Strange behaviour using "border" tag
Posted: Tue Mar 06, 2012 4:51 pm
Hi Andreas,
when I use the border tag with layers and I modify the alpha channel of the layer I have a "tint" effect applied to the entire layer, please have a look at the following snippet:
- The border should be red, and infact it is
- The layer body should be green, dark green to be precise because of the alpha channel and the black background, but it's redish, and it's connected with the border color (changing the border color changes the layer body color).
I could be a bug?
when I use the border tag with layers and I modify the alpha channel of the layer I have a "tint" effect applied to the entire layer, please have a look at the following snippet:
Code: Select all
EnableLayers()
CreateLayer(10,10,400,400,
{ Alphachannel = True,
Clear = True,
Border = True,
BorderColor = $66FF0000,
BorderSize = 8 })
SelectAlphaChannel(1, #LAYER)
SetAlphaIntensity(20)
SetFillStyle(#FILLCOLOR)
Box(0,0,400,400, $00FF00)
EndSelect()
SelectLayer(1)
Box(0,0,400,400, $00FF00)
EndSelect()
WaitLeftMouse()
- The layer body should be green, dark green to be precise because of the alpha channel and the black background, but it's redish, and it's connected with the border color (changing the border color changes the layer body color).
I could be a bug?