<canvas id="my-canvas" style="width:100%;height:400px;"></canvas>
<script type="module">
import { CorruptedVortex } from './src/lib/corrupted-vortex.js';
const vortex = new CorruptedVortex(
document.getElementById('my-canvas'),
{
speed: 1.0, // 0.1–3.0
intensity: 1.0, // 0.1–3.0
rotationRate: 1.0, // 0.0–5.0
hue: null, // null = quasar; 0.0–1.0 = fixed hue
}
);
// vortex.stop();
// vortex.start();
// vortex.destroy();
</script>