more shapes

This commit is contained in:
Sam
2023-03-23 17:28:46 +13:00
parent 572f9b4401
commit e3d07a3c4e
4 changed files with 158 additions and 4 deletions

View File

@@ -24,6 +24,8 @@ function createInstance(className, args) {
FloralAccident: FloralAccident,
FloralPhyllo_Accident: FloralPhyllo_Accident,
Nodal_expanding: Nodal_expanding,
Nodal: Nodal,
Phyllotaxis:Phyllotaxis
// Add more class constructors here as needed
};
@@ -76,6 +78,17 @@ document
let toolbarShowing = true;
document.addEventListener("keydown", toggleSettings);
function manualToggleSettings(){
console.log("hi")
toolbarShowing = !toolbarShowing;
let tb = document.getElementById("toolbar");
if (toolbarShowing) {
tb.style.display = "flex";
} else {
tb.style.display = "none";
}
}
function toggleSettings(e) {
if (e.key == "p") {
toolbarShowing = !toolbarShowing;