Merge pull request #24 from BrianGeppert/patch-2

Don't crash when HSV_VALUE == 1
This commit is contained in:
Neil Fraser
2014-12-05 16:27:48 -08:00

View File

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