1.0.0 • Published 3 years ago
node-red-color-converter v1.0.0
node-red-color-converter
Node-RED Node, that helps conver colors
node-red-color-converter imports into NodeRed the conversion from npm package color-convert
Install
Just run
npm install node-red-color-converter
How to use
You can send in the payload one of the types supported by https://www.npmjs.com/package/color-convert
You can send
RGB
{
"payload":{
"rgb": {
"red": 255,
"green": 10,
"blue": 20
}
}
}
HSV
{
"payload":{
"hsv": {
"hue": 358,
"staturation": 96,
"brightness": 100
}
}
}
HSL
{
"payload":{
"hsl": {
"hue": 358,
"staturation": 96,
"lightness": 52
}
}
}
HWB
{
"payload":{
"hwb": {
"hue": 358,
"whiteness": 4,
"blackness": 0
}
}
}
CMYK
{
"payload":{
"cmyk": {
"cyan": 0,
"magenta": 96,
"yellow": 92,
"black": 0
}
}
}
CMYK
{
"payload":{
"xyz": {
"x": 41,
"y": 22,
"z": 3
}
}
}
HEX
{
"payload":{
"hex": "FF0A14"
}
}
Keyword
{
"payload":{
"keyword": "red"
}
}
Direct Payload
{
"payload": "red"
}
1.0.0
3 years ago