1
0
mirror of https://github.com/osmarks/website synced 2024-10-30 00:56:15 +00:00

scaling fix

This commit is contained in:
osmarks 2024-10-12 09:07:01 +01:00
parent 908422beec
commit 49ede53724
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ void main() {
let size = 1000
let canvas = document.querySelector("canvas")
canvas.width = canvas.height = size
canvas.style.width = canvas.style.height = "100%n"
canvas.style.width = "100%"
// the WebGL API is terrible and if I meet whoever designed it I will armbar them
const gl = canvas.getContext("webgl")

View File

@ -114,7 +114,7 @@ let sc3 = 2.2
let grid = 8
let canvas = document.querySelector("canvas")
canvas.width = canvas.height = size
canvas.style.width = canvas.style.height = size + "px"
canvas.style.width = "100%"
let ctx = canvas.getContext("2d")
let rec = () => {
let dt = Date.now() / 5000