bug with effect gradmul ?

2 views
Skip to first unread message

alcar

unread,
May 27, 2005, 2:33:05 PM5/27/05
to Re...@googlegroups.com
someone can tell me if this is a bug or deliverated change of the
gradmul behaviour:

if backcolor in text-based styles (txt lbl h1 etc.) is not specified,
then the gradmul effect is ignored...

is the same with any rebol/view 1.2.8 or newer
works fine (or in another way...) with view 1.2.1

eg.


view layout [
backcolor coal
lbl "not working" 200x22 yellow effect [gradmul 1x0 0.0.0
255.255.255]
text "not working" 200x22 yellow effect [gradmul 1x0 50.50.50
128.128.128]
h3 "not working" 200x22 yellow effect [gradmul 1x0 50.50.50
128.128.128]
lbl "working" 200x22 black orange effect [gradmul 0x0 0.0.0
255.255.255]
button "working" mint effect [gradmul 1x0 50.50.50 128.128.128]
scroller 200x22 sky effect [gradmul 1x-1 16.16.16 196.128.128]
]

cheers

DideC

unread,
Jun 9, 2005, 5:02:12 AM6/9/05
to Re...@googlegroups.com

alcar a écrit :

Since 1.2.8, the effects are not applied to the face behind the face
where the effect is, it is applied only to the face itself.
So, without color in the face, the 'gradmul effect does nothing.

To be able to do that again, you should add the 'merge keyword at the
beginning of the effect block.

Test this example with 1.2.1 and new one:

view layout [
backdrop yellow
text "without merge" effect [gradmul 1x0 255.255.255 50.50.50]
text "with merge" effect [merge gradmul 1x0 255.255.255 50.50.50]
]

'merge keyword is ignore by View 1.2.1, so it works with all versions.

Cheers

Didier

DideC

unread,
Jun 9, 2005, 5:06:20 AM6/9/05
to Re...@googlegroups.com
I Forget to say that not only 'gradmul is concerned by this change, but
all effects that applied on what is "under" them ('gradcol,
'colorize...)

Didier

Reply all
Reply to author
Forward
0 new messages