From 622d06fd43ccf76db566e4fc97798f747738a796 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 14 Feb 2023 10:47:02 +0100 Subject: [PATCH] fix type in color checks --- index.html | 2 +- stitchcode/objects.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a82c161f..0ee88f8d 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ - + diff --git a/stitchcode/objects.js b/stitchcode/objects.js index ff24c136..a3689213 100644 --- a/stitchcode/objects.js +++ b/stitchcode/objects.js @@ -1265,7 +1265,7 @@ SpriteMorph.prototype.setColorRGB = function (r,g,b) { }; SpriteMorph.prototype.setColorHSV = function (h, s, v) { - if (!isFinite(a) || !isFinite(b) || !isFinite(c)) { + if (!isFinite(h) || !isFinite(s) || !isFinite(v)) { throw new Error('value must not by Infinity'); } var col = new Color();