coverted database interactions and menu to classes

This commit is contained in:
Sam
2024-01-23 19:45:03 +01:00
parent cf843b80c8
commit 68005ea72b
6 changed files with 212 additions and 198 deletions

14
web/js/Button.js Normal file
View File

@@ -0,0 +1,14 @@
class Button{
button(r, g, b, buttonX, buttonY, buttonText) {
push()
noFill()
rectMode(CENTER);
rect(buttonX, buttonY, buttonWidth, buttonHeight)
textSize(25)
fill(r, g, b)
textAlign(CENTER);
text(buttonText, buttonX, buttonY)
pop()
}
}