diff --git a/README.md b/README.md index 4b1bddc93c..1df5e1f87a 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # litegraph.js -A library in Javascript to create graphs in the browser similar to PD. Nodes can be programmed easily and it includes an editor to construct the graphs. +A library in Javascript to create graphs in the browser similar to [PureData](https://puredata.info/). Nodes can be programmed easily and it includes an editor to construct the graphs. It can be integrated easily in any existing web applications and graphs can be run without the need of the editor. diff --git a/guides/README.md b/guides/README.md index d5f2c51f48..ebd024e302 100644 --- a/guides/README.md +++ b/guides/README.md @@ -25,3 +25,18 @@ Slots have the next information: * **label**: optional, string used to rename the name as shown in the canvas. To retrieve the data traveling through a link you can call node.getInputData or node.getOutputData + + +## Integration + +To integrate in you HTML application: + +```js +var graph = new LiteGraph.LGraph(); +var graph_canvas = new LiteGraph.LGraphCanvas( canvas, graph ); +``` + +If you want to start the graph then: +```js +graph.start(); +```