|
1 | | -# Processing.R [WIP] |
| 1 | +<h1 align="center"> |
| 2 | + <img src="./docs/img/logo/logo.png" alt="logo" width="200"> |
| 3 | + <br> |
| 4 | +</h1> |
2 | 5 |
|
3 | | -Processing.R allows the users to write Processing sketches in R. |
| 6 | +<h4 align="center">Processing.R allows the users to write Processing sketches in R.</h4> |
4 | 7 |
|
5 | 8 | ***Notice: Now Processing.R is still in early development stage, not production ready!*** |
6 | 9 |
|
7 | | -### Editor Support |
| 10 | +## Installation |
8 | 11 |
|
9 | | -Change `processing.modes` in build.xml, and run `ant install`, you will get a mode in `processing/modes`. |
| 12 | +See [the documentation about the installation](./docs/howto.md). |
10 | 13 |
|
11 | | -```xml |
12 | | -<!-- folder to install modes in (probably a folder called "modes" inside your sketchbook folder) --> |
13 | | -<property name="processing.modes" location="/Users/<username>/Documents/Processing/modes" /> |
14 | | -<!-- path to your processing executable. --> |
15 | | -<property name="processing.executable" location="/Applications/Processing.app/Contents/MacOS/Processing" /> |
16 | | -``` |
| 14 | +## Feature Preview |
17 | 15 |
|
18 | | -<img src="./docs/img/editor.png" width="600"> |
| 16 | +<img src="./docs/img/editor.png" width="500"> |
19 | 17 |
|
20 | | -<img src="./docs/img/demo.gif" width="600"> |
| 18 | +<img src="./docs/img/demo.gif" width="500"> |
21 | 19 |
|
22 | | -### Runner.jar |
| 20 | +## Useful Resources for Development |
23 | 21 |
|
24 | | -Processing.R offers a jar, which allows to have a try without the installation of Processing app. |
25 | | - |
26 | | -Run `ant try`, you will get a runner in `try/`, and run `java -jar ./try/RLangMode.jar <your R script>`. |
27 | | - |
28 | | -```r |
29 | | -posAX <- 11 |
30 | | -posAY <- 22 |
31 | | - |
32 | | -posBX <- 33 |
33 | | -posBY <- 22 |
34 | | - |
35 | | -processing$line(posAX, posAY, posBX, posBY) |
36 | | -``` |
37 | | - |
38 | | -The output is: |
39 | | - |
40 | | -<img src="./docs/img/demo.png" height="200"> |
| 22 | +See [references](./docs/references.md). |
0 commit comments