If i execute the following code, i get gfx errors at the corners of the drawn box. Actually, there shouldn't be any corner at all.
What I want to do is, to get a box with round corners and with a fading fill color from inside to outside. (to later simulate shadows for gfx objects).
Is this a bug? Am I doing something wrong? Or is it just not possible to do that, what I want to do
regards, Tom
Code: Select all
@VERSION 4,5
@DISPLAY { Width=640, Height=480, Color = #WHITE, Title = "test" }
EnableLayers()
SetFillStyle(#NORMAL)
SetFillStyle(#FILLCOLOR)
Box(200, 200, 255, 255, #BLUE,{name="box",Roundlevel=57})
ConvertToBrush(#LAYER,"box",1)
RemoveLayer("box")
SelectAlphaChannel(1)
For Local i=0 To 255\2
SetAlphaIntensity(i)
Box(i,i,255-(i*2),255-(i*2),#RED,{roundlevel=57})
Next
EndSelect
DisplayBrush(1,200,200,{hidden=False,name="box")
Repeat
WaitEvent
Forever