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

[REBOL] Re: Gradient and Transparency

From: cyphre::seznam::cz at: 1-Jun-2004 14:25

Hi Patrick, AFAIK you can't easily use gradients on text in Rebol but there is few ways how to do it. Below is an example of one possible way(I don't say it is the most elegant but it works ;-) ) beware of line breaks! ---------------------------<code>------------------------------------------- -- view layout [ title with [ text: "REBOL" font: make font [ size: 60 ] para: make para [ scroll: -1000x0 ] effect: compose/deep [ gradient 1x1 red blue draw [ image 0x0 (to-image layout [origin 0 backcolor 200.200.200 title white (text) font-size (font/size)]) white ] ] ] ] --------------------------</code>------------------------------------------- -- regards, Cyphre