REBOL Technologies

DRAW Pens in Next Version

Carl Sassenrath, CTO
REBOL Technologies
8-Dec-2004

Article #0064
Main page || Index || Prior Article [0063] || Next Article [0065] || Post Comments || Send feedback

Here is a cool one-liner example Cyphre sent to me, and I thought I should post it here, so as not to lose track of it:

view layout [box 300x300 white effect [draw [pen logo.gif circle 150x150 100]]]

This code uses the built-in REBOL logo (stored in logo.gif variable) as the pen to draw the circle. The result looks like:

Very soon you can try with your own favorite image:

file: request-file/only
if not file [quit]
img: load file
if not image? img [quit]
view layout [box 300x300 white effect [draw [pen img circle 150x150 100]]]

Post Comments

Updated 25-Nov-2017   -   Copyright Carl Sassenrath   -   WWW.REBOL.COM   -   Edit   -   Blogger Source Code