Comments on: DRAW Pens in Next Version
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 a Comment:
You can post a comment here. Keep it on-topic.