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/
This commit is contained in:
Ruud Helderman 2019-09-08 21:50:54 +02:00 committed by GitHub
parent 0ad611a200
commit 73f043d73f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
/**