From 10dd12367fab6851952ac20c394a28ae3d3163d5 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 4 Oct 2021 18:59:12 +0200 Subject: [PATCH] Update --- projects/projectile/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/projectile/index.js b/projects/projectile/index.js index 9d11e8c..f27f474 100644 --- a/projects/projectile/index.js +++ b/projects/projectile/index.js @@ -11,7 +11,7 @@ let projectile= function (node){ let dots=[] // Dots that show projectile path node.setup = function() { - c=node.createCanvas(width, height); + c=node.createCanvas(Math.min(window.innerWidth,width), height); v0t=node.createElement('p', ''); katex.render("v_0", v0t.elt); v0t.elt.style.color="#b4b4b4"