plots docs, mention color prop
This commit is contained in:
parent
49e7ad8572
commit
fa00ed53ba
2 changed files with 17 additions and 2 deletions
|
|
@ -13,6 +13,7 @@ Every widget has the following properties:
|
|||
left:"auto", // [string|integer] if set, the widget will have an absolute position (percentages allowed)
|
||||
width:"auto", // [string|integer] widget's width in px (percentages allowed)
|
||||
height:"auto", // [string|integer] widget's height in px (percentages allowed)
|
||||
color:'auto', // [string] css color code replacing the default accent color
|
||||
css:"", // [string] css styles, yeah
|
||||
|
||||
precision:2, // [integer] number of decimals : 0 to send integers
|
||||
|
|
|
|||
|
|
@ -1,8 +1,19 @@
|
|||
# Plots
|
||||
|
||||
Plots are tools that display other widgets' state or incomming osc messages.
|
||||
Plots are tools that display other widgets' state or incomming osc messages. They are not sensitive to mouse and touch interactions.
|
||||
|
||||
## led
|
||||
```js
|
||||
type:'led',
|
||||
range:x:{"min":0,"max":1} // [object] minimum and maximum values for X and Y axis
|
||||
logScale: false, // [bool] use logarithmic scale
|
||||
```
|
||||
|
||||
|
||||
## plot
|
||||
|
||||
The plot receives an array of [x,y] coordinates and draws them on a chart with linear or logarithmic interpolation.
|
||||
|
||||
```js
|
||||
type:'plot',
|
||||
points:[], // [string|array]
|
||||
|
|
@ -20,9 +31,12 @@ logScaleY: false // [bool] use logarithmic scale for y axis (log10)
|
|||
```
|
||||
|
||||
## visualizer
|
||||
|
||||
The visualizer displays the evolution in time of a received value (through osc) *or* another widget's value.
|
||||
|
||||
```js
|
||||
type:'visualizer',
|
||||
curve:'', // [string] widget id (its value will be displayed)
|
||||
widgetId:'', // [string] widget id (its value will be displayed instead of the incoming osc)
|
||||
duration:1, // [number] window size in seconds
|
||||
range:{"min":0,"max":1}, // [object] minimum and maximum values the Y axis
|
||||
logScale: false, // [bool] use logarithmic scale for Y axis (log10)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue