Most recent activity
-
- 28 comments
- 713 views
-
-
-
-
https://gist.github.com/OmegaRogue/0beda87a1a80dccb3bc4e8d8c84b70cb
here is the log
here is the app loader: https://omegavoid.codes/BangleApps
its hosted using GitHub pages, and recently its been having alot of problems with actually rebuilding everything on deploy, my custom css had alot of problems with having the latest changes after rebuilding -
-
-
-
either way, this is definetly shorter:
function drawCorner(obj, x, y, n) { g.setColor(obj.C.color.primary.base); let s1, s2 = 1; switch (n) { case 0: // Top Left s1 = s2 = -1; break; case 1: // Top Right s2 = -1; break; case 2: // Bottom Left s1 = -1; break; case 3: // Bottom break; } const x1 = x + obj.cornerOffset *s1; const y1 = y + obj.cornerOffset *s2; g.fillRect(x1, y1, x, y - obj.cornerSize*(s1*-1) + obj.cornerOffset*s1); g.fillRect(x1, y1, x - obj.cornerSize*(s2*-1) + obj.cornerOffset*s2, y); } Arwes.prototype.drawFrameNoCorners = function (x1, y1, x2, y2) { g.setColor(this.C.color.primary.dark); g.drawRect(x1, y1, x2, y2); }
that does nothing