[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 ...
>
> -pekr-
>
> > Layout some text, convert to an image,
> > then use the inbuilt 90 degree rotation
> > effect to display it sideways. See below.
> >
>
> > Regards,
> >
> > Anton.
;original
img: to-image layout [
backdrop black ; black will be keyed for transparency
origin 0x0
H1 "hello there" white
]
view center-face layout [image img]
; one way - make the face yourself
rot-face: center-face make face [
image: img
size: reverse img/size ; (width, height) -> (height, width)
edge: none
effect: [rotate 90] ; could put key black here too
]
view rot-face
; or another way - lay it out with layout, and with transparency
view center-face layout [
box red / 2 ; to make transparency obvious
at 20x30
image img reverse img/size effect [rotate 270 key black]
]
Anton.