Comments on: New DRAW Function Added
REBOL Technologies

Comments on: New DRAW Function Added

Carl Sassenrath, CTO
REBOL Technologies

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

Those of you who look at RAMBO will notice that I've added a DRAW function to /View. Why? Because, it allows DRAW commands (SVG) to be created without needing a FACE and the TO-IMAGE function. With it, users can more easily prebuild vector graphics, and if the image is static, it is more efficient too. Besides, it was just one line of C code to add it (ignoring declarations, etc.), and that's a rare thing.

The function can take an existing image (and draw on top of it) or create a new image of a given size. The commands are identical to the DRAW effect.

image: draw logo [box 20x20 40x40]
image: draw 300x300 [box 20x20 40x40 line 0x0 300x300]

Post Comments

Post a Comment:

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


Blog id:



 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 1-Mar-2024   -   Copyright Carl Sassenrath   -   WWW.REBOL.COM   -   Edit   -   Blogger Source Code