implement gui

This commit is contained in:
LabyStudio
2022-02-03 11:07:53 +01:00
parent 3f8d63cb7f
commit 85c62325c1
7 changed files with 95 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
window.Gui = class {
drawRect(stack, left, top, right, bottom, color, alpha = 1) {
stack.fillStyle = color;
stack.globalAlpha = alpha;
stack.fillRect(left, top, right - left, bottom - top);
stack.globalAlpha = alpha;
}
}