From 73f043d73f58e23ceb5856f3e1e1d90efb8a2ca8 Mon Sep 17 00:00:00 2001 From: Ruud Helderman <r.helderman@hccnet.nl> Date: Sun, 8 Sep 2019 21:50:54 +0200 Subject: [PATCH] Pen color range [0..99] Attempted bugfix for "Pen Colors repeat each 101 numbers rather than each 100 numbers" as reported in the Scratch forum: https://scratch.mit.edu/discuss/topic/369220/ --- src/extensions/scratch3_pen/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions/scratch3_pen/index.js b/src/extensions/scratch3_pen/index.js index 78705a5f5..1e2940756 100644 --- a/src/extensions/scratch3_pen/index.js +++ b/src/extensions/scratch3_pen/index.js @@ -191,13 +191,13 @@ class Scratch3PenBlocks { } /** - * Wrap a color input into the range (0,100). + * Wrap a color input into the range (0,99). * @param {number} value - the value to be wrapped. * @returns {number} the wrapped value. * @private */ _wrapColor (value) { - return MathUtil.wrapClamp(value, 0, 100); + return MathUtil.wrapClamp(value, 0, 99); } /**