X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/blobdiff_plain/e5fa1fb805db9826011c921c7d6502d9582db4ec..a20337efeeefcb80411a28950c1a897da4b1cef3:/js/animation.js?ds=sidebyside diff --git a/js/animation.js b/js/animation.js index c41d363..99987e7 100644 --- a/js/animation.js +++ b/js/animation.js @@ -58,7 +58,7 @@ var {x, y} = pos(i) X.beginPath() X.lineWidth = 5 - X.strokeStyle = `hsl(0,0,${i.c}%)` + X.strokeStyle = `hsl(0,0%,${i.c}%)` X.moveTo(x, y) X.lineTo(x * 10 * C(i.a), y * 10 * S(i.a)) X.stroke() @@ -106,7 +106,7 @@ if (dt > 1000 / f) { k && X.clearRect(0, 0, 64, 64) for (var i of I) { - X.fillStyle = `hsl(0,0,${i.c}%)` + X.fillStyle = `hsl(0,0%,${i.c}%)` draw(i) c && ucl(i) mov(i)