adding new canvas for feedback
This commit is contained in:
14
index.html
14
index.html
@ -34,6 +34,19 @@
|
|||||||
display: block;
|
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 {
|
details br {
|
||||||
display: none;
|
display: none;
|
||||||
@ -447,6 +460,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<!-- Here comes the editor itself -->
|
<!-- Here comes the editor itself -->
|
||||||
<div id="editor" class="relative flex flex-row h-screen overflow-y-hidden">
|
<div id="editor" class="relative flex flex-row h-screen overflow-y-hidden">
|
||||||
|
<canvas id="feedback"></canvas>
|
||||||
<canvas id="hydra-bg"></canvas>
|
<canvas id="hydra-bg"></canvas>
|
||||||
</div>
|
</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>
|
<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>
|
||||||
|
|||||||
2
src/AudioVisualisation.ts
Normal file
2
src/AudioVisualisation.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// @ts-ignore
|
||||||
|
import { analyser, getAnalyzerData } from "superdough";
|
||||||
@ -47,6 +47,7 @@ export const singleElements = {
|
|||||||
dough_nudge_range: "dough_nudge",
|
dough_nudge_range: "dough_nudge",
|
||||||
error_line: "error_line",
|
error_line: "error_line",
|
||||||
hydra_canvas: "hydra-bg",
|
hydra_canvas: "hydra-bg",
|
||||||
|
feedback: "feedback",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const buttonGroups = {
|
export const buttonGroups = {
|
||||||
|
|||||||
Reference in New Issue
Block a user