Page 1 of 1

[27 Feb 2008] FormStyles #EDGE and #SHADOW Ineffective When Not Using Fill

Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 27 Feb 2008 01:10:01 -0000

This code does not produce a shadow:

Code: Select all

SetFillStyle(#FILLNONE)
SetFormStyle(#ANTIALIAS)
SetFormStyle(#SHADOW, ARGB(128, $939393), 16, #SHDWSOUTHEAST)
Circle(#CENTER, #CENTER, 100, 100)
But this code does:

Code: Select all

SetFillStyle(#FILLCOLOR)
SetFormStyle(#ANTIALIAS)
SetFormStyle(#SHADOW, ARGB(128, $939393), 16, #SHDWSOUTHEAST)
Circle(#CENTER, #CENTER, 100, 100)
(The FormStyle #EDGE also only works when a fill is used.)

Is this the way it is supposed to be, or is this a bug?

[26 Feb 2008] Re: FormStyles #EDGE and #SHADOW Ineffective When Not Using Fill

Posted: Sat Jun 13, 2020 5:31 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 26 Feb 2008 20:28:06 -0800 (PST)

A work-around for this problem is to set the FillStyle to #FILLCOLOR, use a transparent ARGB color setting, and then you can use #EDGE to give an outline to the object.

The code could be something like this:

Code: Select all

SetFillStyle(#FILLCOLOR)
SetFormStyle(#ANTIALIAS)
SetFormStyle(#EDGE, ARGB(128, #BLUE), 3)
SetFormStyle(#SHADOW, ARGB(128, $939393), 16,
#SHDWSOUTHEAST)
Circle(#CENTER, #CENTER, 100, ARGB(255, $0))
You will notice, however, that the shadow is not visible inside the transparent circle.

[28 Feb 2008] Re: FormStyles #EDGE and #SHADOW Ineffective When Not Using Fill

Posted: Sat Jun 13, 2020 5:31 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Thu, 28 Feb 2008 20:47:50 +0100

No, that's not a bug. Shadow and edge are not supported for #FILLNONE style because it doesn't make so much sense if you ask me.