soloam / node-red-contrib-colorspace Goto Github PK
View Code? Open in Web Editor NEWNodered node to convert color
License: MIT License
Nodered node to convert color
License: MIT License
When trying to install this package via https://flows.nodered.org/node/node-red-contrib-colorspace the version is out of date and RGBW is not supported.
Hello
Is there any chance you can add RGB565 to your node's output options?
http://www.barth-dev.de/about-rgb565-and-how-to-convert-into-it/
http://drakker.org/convert_rgb565.html
I'm going to try to create a function node to do the task, but I thought your node would make the whole process much nicer.
This formula seems to be discussed in many posts
rgb565 = ((rgb888.r & 0xf80000) >> 8) | ((rgb888.g & 0xfc00) >> 5) | ((rgb888.b & 0xf8) >> 3);
I've tried to get this working in a NodeRed function node, but I don't think I have the skills to master it.
FYI
I'm injecting these colours into an M5StickC-Plus for background and text colours
Purely info on what I'm trying to achieve
Hi,
Thanks for your useful node, I'm trying to use it with Alexa but noticed you create a new payload.
Would it be possible to add your data to the existing msg so I can for example read the info from Alexa -
command: "SetColorRequest"
I believe its a node red standard to add extra info rather than replace the msg.
Thanks
Hello,
I wanted to use your node to sync between an rgb led (which needs rgb values) and hue lights (which give either hsv, xy+bri or mired).
I noticed that the x,y,bri space, like hue uses it, isn't supported atm
Can you please add that?
Here is some information on how you could do it:
https://stackoverflow.com/questions/22894498/philips-hue-convert-xy-from-api-to-hex-or-rgb
Thanks
When passing example
"rgbw": { "red": 40, "green": 94, "blue": 0, "white": 100 }
only exact rgbw
is returned.
The expected behavior would also return all other types.
Would it be possible to add RGBW support? I'm looking to use the conversion for LED lighting and this would be really helpful. I'm not certain of the maths, but there seems to be some relevant discussion here:
https://stackoverflow.com/questions/21117842/converting-an-rgbw-color-to-a-standard-rgb-hsb-representation
Also, see line 242: https://github.com/iamh2o/rgbw_colorspace_converter/blob/main/src/rgbw_colorspace_converter/colors/converters.py
It looks like the white channel is used to offset some of the scaling on the RGB, but I'm not really there with the maths side. Perhaps it makes more sense to you, and if so it could be an easy add?
Many thanks,
Tim
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.