[REBOL] Re: Onwards and Upwards - vertical text, transparent version
From: arolls::bigpond::net::au at: 7-Jun-2001 17:27
Here is a modified version with transparent
background to the text. See below.
> The solution works untill there is no underlying face image or the face is
> transparent. For most cases should be sufficient though ...
> > Layout some text, convert to an image,
> > then use the inbuilt 90 degree rotation
> > effect to display it sideways. See below.
> > Regards,
> > Anton.
img: to-image layout [
backdrop black ; black will be keyed for transparency
H1 "hello there" white
view center-face layout [image img]
; one way - make the face yourself
rot-face: center-face make face [
size: reverse img/size ; (width, height) -> (height, width)
effect: [rotate 90] ; could put key black here too
; or another way - lay it out with layout, and with transparency
view center-face layout [
box red / 2 ; to make transparency obvious
image img reverse img/size effect [rotate 270 key black]