Comments on: DRAW Pens in Next Version
REBOL Technologies

Comments on: 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

Post a Comment:

You can post a comment here. Keep it on-topic.

Name:

Blog id:

CS-0064


Comment:


 Note: HTML tags allowed for: b i u li ol ul font p br pre tt blockquote
 
 

This is a technical blog related to the above topic. We reserve the right to remove comments that are off-topic, irrelevant links, advertisements, spams, personal attacks, politics, religion, etc.

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