This commit is contained in:
NoryiE
2025-10-29 16:56:08 +00:00
parent 9a5b46138e
commit 00a9ce5632
26 changed files with 812 additions and 77 deletions

View File

@@ -3,6 +3,51 @@ _This is the base class for all graph elements. It is a point based graph._
Extends: `VisualElement`
## Usage
```lua run
local graph = main:addGraph()
```
```lua run
:addSeries("input", " ", colors.green, colors.green, 10)
```
```lua run
:addSeries("output", " ", colors.red, colors.red, 10)
```
```lua run
```
```lua run
basalt.schedule(function()
```
```lua run
while true do
```
```lua run
graph:addPoint("input", math.random(1,100))
```
```lua run
graph:addPoint("output", math.random(1,100))
```
```lua run
sleep(2)
```
```lua run
end
```
```lua run
end)
```
## Properties
|Property|Type|Default|Description|