mirror of
https://github.com/osmarks/website
synced 2024-10-30 00:56:15 +00:00
scaling fix
This commit is contained in:
parent
908422beec
commit
49ede53724
@ -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")
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user