Update README.md

This commit is contained in:
Javi Agenjo
2018-03-28 16:37:27 +02:00
committed by GitHub
parent 7485fc68aa
commit 963d5478ec

View File

@@ -79,6 +79,17 @@ LiteGraph.registerNodeType("basic/sum", MyAddNode );
```
or you can wrap an existing function:
```js
function sum(a,b)
{
return a+b;
}
LiteGraph.wrapFunctionAsNode("math/sum",sum, ["Number","Number"],"Number");
```
## Server side
It also works server-side using Node although some nodes do not work in server (audio, graphics, input, etc).