Commit 1d3cf36b authored by Neil Fraser's avatar Neil Fraser

Merge pull request #24 from BrianGeppert/patch-2

Don't crash when HSV_VALUE == 1
parents 66c38160 dd0c5b47
...@@ -101,7 +101,7 @@ Blockly.SPRITE = { ...@@ -101,7 +101,7 @@ Blockly.SPRITE = {
*/ */
Blockly.makeColour = function(hue) { Blockly.makeColour = function(hue) {
return goog.color.hsvToHex(hue, Blockly.HSV_SATURATION, 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