* Change the colour of a block. * * @param colour HSV hue value (0 to 360), #RRGGBB string, or a message * reference string pointing to one of those two values.
(colour: number | string)
| 1086 | * reference string pointing to one of those two values. |
| 1087 | */ |
| 1088 | setColour(colour: number | string) { |
| 1089 | const parsed = parsing.parseBlockColour(colour); |
| 1090 | this.hue = parsed.hue; |
| 1091 | this.colour_ = parsed.hex; |
| 1092 | } |
| 1093 | |
| 1094 | /** |
| 1095 | * Set the style and colour values of a block. |
no outgoing calls
no test coverage detected