Cleanup of colouring code, and move it into path_object.

This commit is contained in:
Rachel Fenichel
2019-10-28 14:57:36 -07:00
parent 85c4db5a10
commit 6f520335ea
14 changed files with 166 additions and 310 deletions

View File

@@ -934,9 +934,9 @@ Blockly.Block.prototype.setColour = function(colour) {
// Set colour just stores these as properties on the block, but never uses
// them again.
// TODO: see if we can just get rid of these properties on the block.
var parsed = Blockly.blockRendering.Colourer.parseColour(colour);
var parsed = Blockly.utils.colour.parseBlockColour(colour);
this.hue_ = parsed.hue;
this.colour_ = parsed.colour;
this.colour_ = parsed.hex;
};
/**