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

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

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

Post 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?
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

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

Post 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.
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
Locked