google / blockly-samples

Plugins, codelabs, and examples related to the Blockly library.
http://github.com/google/blockly
Apache License 2.0
830 stars 617 forks source link

/demos/block factory colour_hue type support RRGGBB hex string #2436

Open mlzboy opened 1 year ago

mlzboy commented 1 year ago

Problem

/demos/block factory colour_hue type do not support RRGGBB hex string

Request

we could use this.setColour("#FF0000") by hand,but if block factory support this is great,currently,in block factory only support hue number could use visual graphic editor I have tried to modify it ,but output is null what I want is #FF0000,sorry my code level is not good. image

Alternatives considered

GIF 2023-7-26 6-22-33 currently I hard code write seven color block,if could dynamic add color is prefered

Additional context

I made a mistake Label with doc,in fact it's a new feature request,but didn't find how to change this tag

cpcallen commented 1 year ago

@mlzboy: I changed the tag and also changed the titles to match the ones in the feature request template. Would you be so kind as to go back and edit the request to fill in the "Problem" and "Alternatives considered" sections?

UCYT5040 commented 1 month ago

Should this be closed since the old developer tools were deprecated? There is still no hex block with the new developer tools, but those are located in the blockly-samples repository.