adding new canvas for feedback

This commit is contained in:
2023-10-22 15:56:42 +02:00
parent 31b31b2c39
commit 094fb57049
3 changed files with 17 additions and 0 deletions

View File

@ -34,6 +34,19 @@
display: block;
}
#feedback {
position: fixed; /* ignore margins */
top: 0px;
left: 0px;
width: 100%; /* fill screen */
height: 100%;
background-size: cover;
overflow-y: hidden;
z-index: -1; /* place behind everything else */
display: block;
}
details br {
display: none;
@ -447,6 +460,7 @@
</ul>
<!-- Here comes the editor itself -->
<div id="editor" class="relative flex flex-row h-screen overflow-y-hidden">
<canvas id="feedback"></canvas>
<canvas id="hydra-bg"></canvas>
</div>
<p id="error_line" class="hidden text-red-400 w-screen bg-neutral-900 font-mono absolute bottom-0 pl-2 py-2">Hello kids</p>

View File

@ -0,0 +1,2 @@
// @ts-ignore
import { analyser, getAnalyzerData } from "superdough";

View File

@ -47,6 +47,7 @@ export const singleElements = {
dough_nudge_range: "dough_nudge",
error_line: "error_line",
hydra_canvas: "hydra-bg",
feedback: "feedback",
};
export const buttonGroups = {