Skip to content

Commit 8493816

Browse files
authored
Create README.md
1 parent 2641b05 commit 8493816

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Rebol/Blend2D
2+
3+
[Blend2D](https://github.com/blend2d/blend2d) extension for [Rebol3](https://github.com/Siskin-framework/Rebol) (drawing dialect)
4+
5+
## Usage
6+
7+
This extension requires Oldes' version of *Rebol* language interpreter, which can be downloaded [here](https://github.com/Siskin-framework/Rebol/releases).
8+
To use Bland2D's `draw` dialect, the extension must be loaded using:
9+
```rebol
10+
import %blend2d-x64.rebx
11+
```
12+
Once the module is imported, the new `draw` function may be used to draw into any image.
13+
```rebol
14+
>> help draw
15+
USAGE:
16+
DRAW image commands
17+
18+
DESCRIPTION:
19+
Draws scalable vector graphics to an image.
20+
DRAW is a command! value.
21+
22+
ARGUMENTS:
23+
image [image! pair!]
24+
commands [block!]
25+
```
26+
27+
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).
28+
Not all commands are implemented... it was more considered as a proof of concept.
29+
30+
**For some code examples, visit [test/README.md](test/README.md).**

0 commit comments

Comments
 (0)