import { color_mode } from "./color-mode.js"; import { push } from "./push.js"; import { material_icon } from "./icons.js"; import { scene } from "./scene.js"; import { scene_ui } from "./scene-ui.js" document.addEventListener("DOMContentLoaded", () => { const app = document.querySelector(".app"); const colors_state = new color_mode(app); const colors_changer = push("change-color", () => { colors_state.reverse(); }, (target) => { target.innerText = ""; target.appendChild(material_icon("invert_colors")); }); const space = new scene(); const controls = new scene_ui(space); app.appendChild(controls.box); app.appendChild(colors_changer); });