made synthwave pixelated

This commit is contained in:
8BitBiscotti
2024-12-12 13:50:04 +01:00
parent 17187ad792
commit 367c844669
6 changed files with 160 additions and 42 deletions
+10
View File
@@ -13,6 +13,16 @@ function randomInt(min, max) {
}
function clampNearest(n, mul) {
if(n > 0)
return Math.ceil(n / mul) * mul;
else if( n < 0)
return Math.floor(n / mul) * mul;
else
return 0;
}
function showGrid() {
let canvasEl = document.createElement("canvas")
canvasEl.width = window.innerWidth