Commit dd0c5b47 authored by Brian Geppert's avatar Brian Geppert

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.
parent 66c38160
......@@ -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);
};
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment