Christian-Me / node-red-contrib-ui-iro-color-picker

Node-RED dashboard color picker widget utilizing the iro.js library. Can be configured as a widget or modal popup window. Individual components can be combined,
Apache License 2.0
4 stars 3 forks source link

[Enhancement] Color_XY and CSS-names #4

Closed xX-Nexus-Xx closed 3 years ago

xX-Nexus-Xx commented 3 years ago

Is it possible to support the following color modes

thanks a lot for considering

Christian-Me commented 3 years ago

Yes it can be done (like RGBW) but I don't want to overload the ui node with features not related to the original task as a color picker dashboard widget. Color converter was not the original task but as iro.js supports so many formats I made them available. The philosophy of Node-RED is that every node should do a specific task. The Iro color picker has already too many features.

Instead I started a new node utilizing chroma.js for a lot of color manipulation and conversion. Give me a few days😀 I suggest to keep your flow as long as possible device independent using rgb or hsv. As soon as you send your data to a specific device convert it as needed. Keep you updated

Christian-Me commented 3 years ago

Here you have it ...

https://flows.nodered.org/node/node-red-contrib-chroma

Have fun (happy for any kind of feedback)

xX-Nexus-Xx commented 3 years ago

Hi there,

thanks for your update.

My request was not to establish a color converter as part of your node as I already was using a node (like your chroma) for this, but to have the CSS names as list option.

This is my dashboard where I'm using your node to pick the primary color (with workaround for CSS-names) image

Additionally I have RED,GREEN,BLUE button to fast select and a list-box with all the Color CSS names (in this case darkblue) .. both (button and list-box) getting converted to RGB and than feed as input to your color-picker ;)

BTW... your node works great, I'm now using yours to convert "anything" into RGB .. thx a lot