add example, update readme
This commit is contained in:
parent
b87d73c9b5
commit
70c8625db7
@ -97,6 +97,7 @@ Additional functions can be found in the [includes](https://github.com/hundredra
|
||||
- `(js)` Javascript interop.
|
||||
- `(test name a b)`
|
||||
- `(benchmark fn)` logs time taken to execute a function.
|
||||
- `(osc ~address)` returns the last received osc msg on port 12940
|
||||
|
||||
## Extras
|
||||
|
||||
|
11
examples/osc1.lisp
Normal file
11
examples/osc1.lisp
Normal 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")
|
Loading…
x
Reference in New Issue
Block a user