{"id":16883312,"url":"https://github.com/hardillb/node-red-contrib-color-convert","last_synced_at":"2025-04-11T11:51:43.274Z","repository":{"id":68666299,"uuid":"102735408","full_name":"hardillb/node-red-contrib-color-convert","owner":"hardillb","description":"Node-RED node to convert between Color representations (e.g. RGB to HSV)","archived":false,"fork":false,"pushed_at":"2021-01-31T17:21:58.000Z","size":27,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-13T16:11:31.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardillb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["hardillb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-09-07T12:39:32.000Z","updated_at":"2021-01-31T17:22:00.000Z","dependencies_parsed_at":"2023-05-23T03:15:28.591Z","dependency_job_id":null,"html_url":"https://github.com/hardillb/node-red-contrib-color-convert","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":"0.18181818181818177","last_synced_commit":"a77c22e27e28d6a500bd134f69210a3388bd22d7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fnode-red-contrib-color-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fnode-red-contrib-color-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fnode-red-contrib-color-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fnode-red-contrib-color-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardillb","download_url":"https://codeload.github.com/hardillb/node-red-contrib-color-convert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161272,"owners_count":21057555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T16:11:11.554Z","updated_at":"2025-04-11T11:51:43.251Z","avatar_url":"https://github.com/hardillb.png","language":"JavaScript","funding_links":["https://github.com/sponsors/hardillb"],"categories":[],"sub_categories":[],"readme":"# NODE-RED-CONTRIB-COLOR-CONVERT\n\n## Install\n\nInstall via the pallet manager or by running the following in the Node-RED user directory \n(usually ~/.node-red):\n\n`npm install node-red-contrib-color-convert`\n\n## Usage\n\nThis node converts between different color representations, it can convert between the following systems.\n\n - RGB - Red, Green, Blue\n - HSL - Hue, Saturation, Level\n - HSV - Hue, Saturation, Value (brightnes)\n - CSS - CSS color names\n - HEX - A Hex RGB string #ff00ff\n\n### Inputs\n\nFor the first 3 input modes the node will attempt to determine the input format of msg.payload from the 3 following:\n\n - a 3 segment array with values between 0-255 for RGB.\n - a 3 segment array for HSL and HSV with Hue is between 0-360 and Saturation, Level, values 0-100.\n - a object with keys red,green,blue with values between 0-255.\n - a object with keys hue,saturation,lightness or value,brightness with values between 0-360 for hue and 0-100 for the others.\n\nFor the CSS or HEX input mode the msg.payload should be a string containing the name of a CSS color.\n\nFor HSV and HSL inputs the \"Scale Sat/Bri/Val\" check box will convert values from 0-1 to 0-100\n\n### Outputs\n\nOutput type can be configured to be either a 3 element array, an object or a string. The 3 element array will contian the \naproprate values in the same order as expected. Objects will have matching keys and the string will be the values from the \narray joined with a comma.\n\nIf the CSS or HEX output mode is selected then the output type will be forced to be a string.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fnode-red-contrib-color-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardillb%2Fnode-red-contrib-color-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fnode-red-contrib-color-convert/lists"}