add docs + fix hydra for mini repl
This commit is contained in:
parent
1a456828df
commit
0f7b3e9f84
5 changed files with 73 additions and 1 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import { getDrawContext } from '@strudel.cycles/core';
|
||||
|
||||
export async function initHydra() {
|
||||
if (!document.getElementById('hydra-canvas')) {
|
||||
const { canvas: testCanvas } = getDrawContext();
|
||||
await import('https://unpkg.com/hydra-synth');
|
||||
const testCanvas = document.getElementById('test-canvas');
|
||||
const hydraCanvas = testCanvas.cloneNode(true);
|
||||
hydraCanvas.id = 'hydra-canvas';
|
||||
testCanvas.after(hydraCanvas);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue