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

[REBOL] Re: alpha image blending...

From: cyphre:seznam:cz at: 23-Jul-2003 11:11

Hi Max, what about this(needs some newer View betas to work properly): --------------start of code------------------------ site: http://www.rebol.cz/~cyphre/ x: 0 d: 5 view layout [ origin 0x0 image load-thru/binary site/city.jpg 320x240 at 0x0 image load-thru/binary site/bay.jpg 320x240 with [ rate: 30 effect: compose [fit alphamul (x)] feel: make feel [ engage: func [f a e][ x: x + d if x > 250 [d: -5] if x < 5 [d: 5] f/effect: compose [fit alphamul (x)] show f ] ] ] ] ------------------end of code--------------------- regards, Cyphre ----- Original Message ----- From: "Maxim Olivier-Adlhoch" <[maximo--meteorstudios--com]> To: "Rebol-List (E-mail)" <[rebol-list--rebol--com]> Sent: Tuesday, July 22, 2003 10:23 PM Subject: [REBOL] alpha image blending... hi, a while ago a friend of mine told me that the latest versions of view support 8bit alpha channels properly in order to blend images with their own transparency... Is this still true, and if so, can anyone show me a simple example: something as siple as: imageA: load %imgfileA imageB: load %imgfileB imageC: imageA/rgb over imageB/rgb using imageA/alpha view layout [box imageC imageC/size] Thanks in advance ! -max ----------- meteor Studios, T.D. ----------- Strong enough for a man, but made for a woman