Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] merge + key effect bug?

From: oliva::david::seznam::cz at: 19-May-2002 16:03

Hello rebol-list, testing the new Rebol/view ( I've found that my circle-slide style ( ) is not working properly so I made this testing script: ;------------------ lay: layout [ bg: box 100x100 effect [gradient 0.0.0 255.0.0 ] ] test1: make face [ size: 50x50 offset: 20x20 color: 255.0.0 edge: none effect: [ merge draw [fill-pen 100.100.100 circle 25x25 20] key 100.100.100 ] ] test2: make face [ offset: 30x45 size: 100x40 effect: [merge colorize 155.200.0] ] insert tail lay/pane [test1 test2] view lay ;------------------ The test2 works fine - colorize effect is working as should but the test1 doesn't. I think that the result should be red box with transparent circle inside. Is this BUG or should I use something else to make this work fine? I've found that this code is working: ;------------------ test1: make face [ size: 50x50 offset: 40x20 color: none edge: none effect: [ merge draw [ pen none fill-pen 255.0.0 box 0x0 50x50 fill-pen 100.100.100 circle 25x25 20 ] key 100.100.100 ] ] view lay ;------------------ But what if I have image in the face and want to use draw effect to make transparency mask? Thanks Oldes