mirror of
https://github.com/osmarks/website
synced 2025-01-11 01:40:55 +00:00
scaling fix
This commit is contained in:
parent
908422beec
commit
49ede53724
@ -91,7 +91,7 @@ void main() {
|
|||||||
let size = 1000
|
let size = 1000
|
||||||
let canvas = document.querySelector("canvas")
|
let canvas = document.querySelector("canvas")
|
||||||
canvas.width = canvas.height = size
|
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
|
// the WebGL API is terrible and if I meet whoever designed it I will armbar them
|
||||||
const gl = canvas.getContext("webgl")
|
const gl = canvas.getContext("webgl")
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ let sc3 = 2.2
|
|||||||
let grid = 8
|
let grid = 8
|
||||||
let canvas = document.querySelector("canvas")
|
let canvas = document.querySelector("canvas")
|
||||||
canvas.width = canvas.height = size
|
canvas.width = canvas.height = size
|
||||||
canvas.style.width = canvas.style.height = size + "px"
|
canvas.style.width = "100%"
|
||||||
let ctx = canvas.getContext("2d")
|
let ctx = canvas.getContext("2d")
|
||||||
let rec = () => {
|
let rec = () => {
|
||||||
let dt = Date.now() / 5000
|
let dt = Date.now() / 5000
|
||||||
|
Loading…
Reference in New Issue
Block a user