forked from Oldes/Rebol3-Blend2D
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Rebol/Blend2D | ||
|
||
[Blend2D](https://github.com/blend2d/blend2d) extension for [Rebol3](https://github.com/Siskin-framework/Rebol) (drawing dialect) | ||
|
||
## Usage | ||
|
||
This extension requires Oldes' version of *Rebol* language interpreter, which can be downloaded [here](https://github.com/Siskin-framework/Rebol/releases). | ||
To use Bland2D's `draw` dialect, the extension must be loaded using: | ||
```rebol | ||
import %blend2d-x64.rebx | ||
``` | ||
Once the module is imported, the new `draw` function may be used to draw into any image. | ||
```rebol | ||
>> help draw | ||
USAGE: | ||
DRAW image commands | ||
DESCRIPTION: | ||
Draws scalable vector graphics to an image. | ||
DRAW is a command! value. | ||
ARGUMENTS: | ||
image [image! pair!] | ||
commands [block!] | ||
``` | ||
|
||
The dialect is similar but not exactly same like the [original Rebol2 implementation](http://www.rebol.com/r3/docs/view/draw.html) or [Red language draw](https://github.com/red/docs/blob/master/en/draw.adoc). | ||
Not all commands are implemented... it was more considered as a proof of concept. | ||
|
||
**For some code examples, visit [test/README.md](test/README.md).** |