mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Fix passing of secondary and tertiary colours
This commit is contained in:
parent
3cbe49e37a
commit
afaafc1e5b
1 changed files with 4 additions and 2 deletions
|
@ -1291,9 +1291,11 @@ Blockly.BlockSvg.prototype.removeDragging = function() {
|
|||
/**
|
||||
* Change the colour of a block.
|
||||
* @param {number|string} colour HSV hue value, or #RRGGBB string.
|
||||
* @param {number|string} colourSecondary Secondary HSV hue value, or #RRGGBB string.
|
||||
* @param {number|string} colourTertiary Tertiary HSV hue value, or #RRGGBB string.
|
||||
*/
|
||||
Blockly.BlockSvg.prototype.setColour = function(colour) {
|
||||
Blockly.BlockSvg.superClass_.setColour.call(this, colour);
|
||||
Blockly.BlockSvg.prototype.setColour = function(colour, colourSecondary, colourTertiary) {
|
||||
Blockly.BlockSvg.superClass_.setColour.call(this, colour, colourSecondary, colourTertiary);
|
||||
|
||||
if (this.rendered) {
|
||||
this.updateColour();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue