add example, update readme

This commit is contained in:
ngradwohl 2019-07-21 04:06:12 +02:00
parent b87d73c9b5
commit 70c8625db7
2 changed files with 12 additions and 0 deletions

View File

@ -97,6 +97,7 @@ Additional functions can be found in the [includes](https://github.com/hundredra
- `(js)` Javascript interop. - `(js)` Javascript interop.
- `(test name a b)` - `(test name a b)`
- `(benchmark fn)` logs time taken to execute a function. - `(benchmark fn)` logs time taken to execute a function.
- `(osc ~address)` returns the last received osc msg on port 12940
## Extras ## Extras

11
examples/osc1.lisp Normal file
View File

@ -0,0 +1,11 @@
(clear)
(def x (of (osc "/test") "args" "0" "value"))
(def y (of (osc "/test") "args" "1" "value"))
(def r (of (osc "/test") "args" "2" "value"))
(fill
(circle x y r)
"red")
(stroke
(circle x y r)
5 "white")