From 6423c64219c22a7c7347bd48481b03c11b4e5123 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Feb 2023 18:57:49 +0100 Subject: [PATCH] one more typo fix --- stitchcode/objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stitchcode/objects.js b/stitchcode/objects.js index a3689213..2ede996a 100644 --- a/stitchcode/objects.js +++ b/stitchcode/objects.js @@ -1254,7 +1254,7 @@ SpriteMorph.prototype.setColor = function (aColor) { SpriteMorph.prototype.setColorRGB = function (r,g,b) { - if (!isFinite(a) || !isFinite(b) || !isFinite(c)) { + if (!isFinite(r) || !isFinite(b) || !isFinite(g)) { throw new Error('value must not by Infinity'); } var a = this.color.a;