deploy: 7099b5c548
This commit is contained in:
@@ -6,45 +6,15 @@ Extends: `VisualElement`
|
||||
## Usage
|
||||
```lua
|
||||
local graph = main:addGraph()
|
||||
```
|
||||
|
||||
```lua
|
||||
:addSeries("input", " ", colors.green, colors.green, 10)
|
||||
```
|
||||
|
||||
```lua
|
||||
:addSeries("output", " ", colors.red, colors.red, 10)
|
||||
```
|
||||
|
||||
```lua
|
||||
|
||||
```
|
||||
|
||||
```lua
|
||||
basalt.schedule(function()
|
||||
```
|
||||
|
||||
```lua
|
||||
while true do
|
||||
```
|
||||
|
||||
```lua
|
||||
graph:addPoint("input", math.random(1,100))
|
||||
```
|
||||
|
||||
```lua
|
||||
graph:addPoint("output", math.random(1,100))
|
||||
```
|
||||
|
||||
```lua
|
||||
sleep(2)
|
||||
```
|
||||
|
||||
```lua
|
||||
end
|
||||
```
|
||||
|
||||
```lua
|
||||
end)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user