diff options
| author | julian laplace <julescarbon@gmail.com> | 2023-05-10 15:13:47 +0200 |
|---|---|---|
| committer | julian laplace <julescarbon@gmail.com> | 2023-05-10 15:13:47 +0200 |
| commit | 7af6dfc46f9a94e3966cdfa4e0d353e989eb9070 (patch) | |
| tree | 10ba8c83dd83dde4ffa74ec4fd7ce0868f145b70 /src/index.jsx | |
| parent | ec93f3236c39e03b993d0e15093ac354a20cb9ea (diff) | |
add stars and velocity
Diffstat (limited to 'src/index.jsx')
| -rw-r--r-- | src/index.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/index.jsx b/src/index.jsx index 6c58df3..0428bcf 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -3,8 +3,8 @@ import { createRoot } from "react-dom/client"; import { requestAudioContext, randrange } from "./lib/util"; import App from "./ui/App.jsx"; +import Stars from "./lib/stars"; -document.body.style.backgroundColor = "#111"; document.body.style.color = "#fff"; document.body.style.margin = 0; document.body.style.padding = 0; @@ -15,6 +15,7 @@ document.body.parentNode.style.margin = 0; document.body.parentNode.style.padding = 0; document.body.parentNode.style.height = "100%"; document.body.parentNode.style.width = "100%"; +document.body.parentNode.style.backgroundColor = "#111"; requestAudioContext(() => { const container = document.createElement("div"); @@ -24,4 +25,5 @@ requestAudioContext(() => { document.body.appendChild(container); const root = createRoot(container); root.render(<App />); + Stars(); }); |
