inline multichannel scopes
This commit is contained in:
parent
d9d05e21c0
commit
f4032dad22
3 changed files with 47 additions and 32 deletions
|
|
@ -21,3 +21,9 @@ registerWidget('twist', (id, options = {}, pat) => {
|
|||
const ctx = getCanvasWidget(id, options).getContext('2d');
|
||||
return pat.spiral({ ...options, ctx, id });
|
||||
});
|
||||
|
||||
registerWidget('osci', (id, options = {}, pat) => {
|
||||
options = { width: 500, height: 60, pos: 0.5, scale: 1, ...options };
|
||||
const ctx = getCanvasWidget(id, options).getContext('2d');
|
||||
return pat.scope({ ...options, ctx, id });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue