implement gui
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user