commit da0a435016b3f8c57a5c5f6ed8b618c8a1b81ef0 parent a442c33443318dbfd129571ddbc546a4b144287e Author: Yuval Langer <yuval.langer@gmail.com> Date: Sun, 10 Apr 2022 20:09:47 +0300 Fix ratio so it will grow with canvas height rather than shrink. Diffstat:
M | html/spinning-shapes/main.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/spinning-shapes/main.js b/html/spinning-shapes/main.js @@ -289,7 +289,7 @@ Math.TAU = 2 * Math.PI; math_graph_y_extents[polygon_i][0], math_graph_y_extents[polygon_i][1], y_bottom, y_top)); - canvas_polygon_radiuses[polygon_i] = math_polygon_radiuses[polygon_i].map(x => x * (500 / canvas.height) * 100) + canvas_polygon_radiuses[polygon_i] = math_polygon_radiuses[polygon_i].map(x => x * (canvas.height / 500) * 100) } }