mirror of
https://github.com/google/blockly.git
synced 2026-01-15 12:57:12 +01:00
Merge pull request #24 from BrianGeppert/patch-2
Don't crash when HSV_VALUE == 1
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user