Vanilla
Use createNeoDisco() with either an element container or an existing canvas.
import { createNeoDisco } from "neodisco";
const instance = createNeoDisco(document.querySelector("#stage")!, { theme: "gold", tileRows: 26, tileColumns: 50, sparkle: 0.55});Update options later:
instance.update({ theme: "prism", glow: 1.15});Destroy when removing the host element:
instance.destroy();