{"id":23274251,"url":"https://github.com/luncheon/reinvented-color-wheel","last_synced_at":"2026-03-02T09:31:38.618Z","repository":{"id":32933244,"uuid":"145664797","full_name":"luncheon/reinvented-color-wheel","owner":"luncheon","description":"A vanilla-js touch-friendly HSV color picker inspired by Farbtastic Color Picker.","archived":false,"fork":false,"pushed_at":"2025-02-12T15:32:24.000Z","size":2098,"stargazers_count":64,"open_issues_count":6,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-11T04:05:48.491Z","etag":null,"topics":["color","color-picker","color-wheel","hsv","vanilla-js"],"latest_commit_sha":null,"homepage":"https://luncheon.github.io/reinvented-color-wheel/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luncheon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2018-08-22T06:17:33.000Z","updated_at":"2025-08-28T13:25:59.000Z","dependencies_parsed_at":"2025-02-24T06:00:30.758Z","dependency_job_id":"97fac0df-d71b-4959-afab-03f7960e987e","html_url":"https://github.com/luncheon/reinvented-color-wheel","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/luncheon/reinvented-color-wheel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luncheon%2Freinvented-color-wheel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luncheon%2Freinvented-color-wheel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luncheon%2Freinvented-color-wheel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luncheon%2Freinvented-color-wheel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luncheon","download_url":"https://codeload.github.com/luncheon/reinvented-color-wheel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luncheon%2Freinvented-color-wheel/sbom","scorecard":{"id":605249,"data":{"date":"2025-08-11","repo":{"name":"github.com/luncheon/reinvented-color-wheel","commit":"bfbe2fd383ad13169014141445cfff00f25ac23e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Do What The F*ck You Want To Public License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-8266-84wp-wv5c"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T01:26:45.704Z","repository_id":32933244,"created_at":"2025-08-21T01:26:45.704Z","updated_at":"2025-08-21T01:26:45.704Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29997213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["color","color-picker","color-wheel","hsv","vanilla-js"],"created_at":"2024-12-19T20:12:40.376Z","updated_at":"2026-03-02T09:31:38.597Z","avatar_url":"https://github.com/luncheon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reinvented Color Wheel\n\n[![npm](https://img.shields.io/npm/dm/reinvented-color-wheel.svg?style=popout-square\u0026label=npm\u0026colorB=orange)](https://www.npmjs.com/package/reinvented-color-wheel)\n[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/reinvented-color-wheel/badge)](https://www.jsdelivr.com/package/npm/reinvented-color-wheel)\n[\u003cimg alt=\"WTFPL\" src=\"https://luncheon.github.io/wtfpl-badge.png\" height=\"20\"\u003e](http://www.wtfpl.net)\n\n![image](https://luncheon.github.io/reinvented-color-wheel/image.png)\n\nA vanilla-js touch-friendly HSV color picker inspired by [Farbtastic Color Picker](https://acko.net/blog/farbtastic-jquery-color-picker-plug-in/).\n\n[Demo](https://luncheon.github.io/reinvented-color-wheel/)\n\n\n## Characteristics\n\n* HSV (hue, saturation, value) cylindrical color model (unlike Farbtastic that takes HSL)\n  * c.f. [HSL and HSV - Wikipedia](https://en.wikipedia.org/wiki/HSL_and_HSV)\n* Touch-friendly\n* No need jQuery\n* Lightweight (JS + CSS ~ 3.1 KB minified + gzipped)\n\n\n## Installation\n\n### via [npm](https://www.npmjs.com/package/reinvented-color-wheel) (with a module bundler)\n\n```bash\n$ npm install reinvented-color-wheel\n```\n\n```javascript\nimport \"reinvented-color-wheel/css/reinvented-color-wheel.min.css\";\nimport ReinventedColorWheel from \"reinvented-color-wheel\";\n```\n\n### via CDN ([jsDelivr](https://www.jsdelivr.com/package/npm/reinvented-color-wheel))\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/reinvented-color-wheel@0.4.0/css/reinvented-color-wheel.min.css\"\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/reinvented-color-wheel@0.4.0\"\u003e\u003c/script\u003e\n\u003cscript\u003e/* `window.ReinventedColorWheel` object is available */\u003c/script\u003e\n```\n\nor for [modern browsers](https://caniuse.com/#feat=es6-module):\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/reinvented-color-wheel@0.4.0/css/reinvented-color-wheel.min.css\"\u003e\n\u003cscript type=\"module\"\u003e\n  import ReinventedColorWheel from \"https://cdn.jsdelivr.net/npm/reinvented-color-wheel@0.4.0/es/reinvented-color-wheel.bundle.min.js\";\n\u003c/script\u003e\n```\n\n### Download directly\n\n\u003ca target=\"_blank\" download=\"reinvented-color-wheel.min.css\" href=\"https://cdn.jsdelivr.net/npm/reinvented-color-wheel@0.4.0/css/reinvented-color-wheel.min.css\"\u003ereinvented-color-wheel.min.css\u003c/a\u003e  \n\u003ca target=\"_blank\" download=\"reinvented-color-wheel.min.js\"  href=\"https://cdn.jsdelivr.net/npm/reinvented-color-wheel@0.4.0/iife/reinvented-color-wheel.min.js\"\u003ereinvented-color-wheel.min.js\u003c/a\u003e\n\n\n## Usage\n\n```javascript\n// create a new color picker\nvar colorWheel = new ReinventedColorWheel({\n  // appendTo is the only required property. specify the parent element of the color wheel.\n  appendTo: document.getElementById(\"my-color-picker-container\"),\n\n  // followings are optional properties and their default values.\n\n  // initial color (can be specified in hsv / hsl / rgb / hex)\n  hsv: [0, 100, 100],\n  // hsl: [0, 100, 50],\n  // rgb: [255, 0, 0],\n  // hex: \"#ff0000\",\n\n  // appearance\n  wheelDiameter: 200,\n  wheelThickness: 20,\n  handleDiameter: 16,\n  wheelReflectsSaturation: true,\n\n  // handler\n  onChange: function (color) {\n    // the only argument is the ReinventedColorWheel instance itself.\n    // console.log(\"hsv:\", color.hsv[0], color.hsv[1], color.hsv[2]);\n  },\n});\n\n// set color in HSV / HSL / RGB / HEX\ncolorWheel.hsv = [240, 100, 100];\ncolorWheel.hsl = [120, 100, 50];\ncolorWheel.rgb = [255, 128, 64];\ncolorWheel.hex = '#888888';\n\n// get color in HSV / HSL / RGB / HEX\nconsole.log(\"hsv:\", colorWheel.hsv[0], colorWheel.hsv[1], colorWheel.hsv[2]);\nconsole.log(\"hsl:\", colorWheel.hsl[0], colorWheel.hsl[1], colorWheel.hsl[2]);\nconsole.log(\"rgb:\", colorWheel.rgb[0], colorWheel.rgb[1], colorWheel.rgb[2]);\nconsole.log(\"hex:\", colorWheel.hex);\n\n// please call redraw() after changing some appearance properties.\ncolorWheel.wheelDiameter = 400;\ncolorWheel.wheelThickness = 40;\ncolorWheel.redraw();\n```\n\n\n## Web Components\n\nThis package contains the Web Components wrapping the color wheel.  \nThe tag is `\u003creinvented-color-wheel\u003e`.  \nThe options above except for `appendTo` can be specified with kebab-case, and each option is optional.  \n\n```html\n\u003c!-- CSS is included in JS: no \u003clink\u003e is needed. --\u003e\n\u003cscript src=\"reinvented-color-wheel/webcomponents/index.js\"\u003e\u003c/script\u003e\n\n\u003creinvented-color-wheel\n  hex=\"#ff3e00\"\n  wheel-diameter=\"200\"\n  wheel-thickness=\"20\"\n  handle-diameter=\"16\"\n  wheel-reflects-saturation=\"false\"\n\u003e\u003c/reinvented-color-wheel\u003e\n\n\u003c!-- hsv, hsl or rgb can be specified as a comma-separated string. --\u003e\n\u003creinvented-color-wheel rgb=\"255,62,0\"\u003e\u003c/reinvented-color-wheel\u003e\n```\n\n## React Component\n\nThis package contains the React component wrapping the color wheel.  \nThe options above except for `appendTo` can be specified, and each option is optional.\n\n```tsx\nimport React from 'react'\nimport ReinventedColorWheel from 'reinvented-color-wheel/react'\nimport 'reinvented-color-wheel/css/reinvented-color-wheel.min.css'\n\nconst App = () =\u003e {\n  const [hex, setHex] = React.useState('#000000')\n  return (\n    \u003c\u003e\n      \u003cReinventedColorWheel\n        // hsv={[0, 100, 100]}\n        // hsl={[0, 100, 50]}\n        // rgb={[255, 0, 0]}\n        // hex=\"#ff0000\"\n        hex={hex}\n        wheelDiameter={200}\n        wheelThickness={20}\n        handleDiameter={16}\n        wheelReflectsSaturation\n        onChange={({ hex }) =\u003e setHex(hex)}\n      /\u003e\n      \u003cinput value={hex} onChange={e =\u003e setHex(e.target.value)} /\u003e\n    \u003c/\u003e\n  )\n}\n```\n\n\n## License\n\n[WTFPL](http://www.wtfpl.net)\n\n## Sister Package\n\n[lch-color-wheel](https://github.com/luncheon/lch-color-wheel): **L\\*C\\*h** color wheel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluncheon%2Freinvented-color-wheel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluncheon%2Freinvented-color-wheel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluncheon%2Freinvented-color-wheel/lists"}