inline multichannel scopes

This commit is contained in:
Felix Roos 2024-03-16 02:14:24 +01:00
parent d9d05e21c0
commit f4032dad22
3 changed files with 47 additions and 32 deletions

View file

@ -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 });
});