mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-12 22:19:17 -04:00
Don't crash when HSV_VALUE == 1
256 isn't a valid value (valid values range from 0-255, inclusive). So the correct constant to multiply by is 255.
This commit is contained in:
parent
66c3816012
commit
dd0c5b4721
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ Blockly.SPRITE = {
|
|||
*/
|
||||
Blockly.makeColour = function(hue) {
|
||||
return goog.color.hsvToHex(hue, Blockly.HSV_SATURATION,
|
||||
Blockly.HSV_VALUE * 256);
|
||||
Blockly.HSV_VALUE * 255);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue