mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-07 02:54:38 -04:00
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:
parent
0ad611a200
commit
73f043d73f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue