{"id":21989194,"url":"https://github.com/repcomm/colorwheel","last_synced_at":"2026-05-18T15:04:03.561Z","repository":{"id":130853834,"uuid":"166898017","full_name":"RepComm/colorwheel","owner":"RepComm","description":"esmodule color wheel renderer","archived":false,"fork":false,"pushed_at":"2020-06-24T04:10:40.000Z","size":523,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T08:51:19.658Z","etag":null,"topics":["canvas-renderer","color-wheel","es-module","js","renderer"],"latest_commit_sha":null,"homepage":"https://repcomm.github.io/colorwheel","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RepComm.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-01-22T00:07:06.000Z","updated_at":"2020-06-24T04:10:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"8de55b4b-99a6-428b-9ea1-e40abda97f5d","html_url":"https://github.com/RepComm/colorwheel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fcolorwheel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fcolorwheel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fcolorwheel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RepComm%2Fcolorwheel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RepComm","download_url":"https://codeload.github.com/RepComm/colorwheel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245048276,"owners_count":20552483,"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":["canvas-renderer","color-wheel","es-module","js","renderer"],"created_at":"2024-11-29T19:28:20.925Z","updated_at":"2026-05-18T15:03:58.516Z","avatar_url":"https://github.com/RepComm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ColorWheel\nESModule for rendering color wheels\n\nBasically, I hate that browsers have different color pickers on different OSes.\n\n![demo 0 - image](./example.png)\n\nTake a look at the demo code:\n[demo 0](./index.js)\n\nTake a look at the output:\n[demo 0 - visual](https://repcomm.github.io/colorwheel)\n\n[demo 1 - visual](https://repcomm.github.io/colorwheel/examples/example-chaining.html)\n\nUsage is fairly simple:\n\nCreating the wheel\n```javascript\nlet myWheel = new ColorWheel()\n```\n\nAdding \u0026 removing colors\n```javascript\nlet red = WheelColor.fromRGB(255, 0, 0);\nmyWheel.addColor(red);\nmyWheel.removeColor(red);\n```\n\nAppending it to the dom\n```javascript\nmyWheel.mount( myDiv );\n//mount accepts an html or Component class (see component.js)\n\n//Similar to\ndiv.appendChild ( myWheel.element )\n```\n\nHelper functions that make life easy\n```javascript\n  //Handle window resizing\n  .handleResize()\n\n  //Auto render when state changes\n  .handleRedrawLoop()\n\n  //Applies 100% to width and height of canvas element\n  .fillParentSize();\n```\n\nColor picking\n```javascript\n  .handleColorPicking()\n  .on(\"color-pick\", (color)=\u003e{\n    container.style[\"border-color\"] = `rgb(${color.toString()})`;\n  })\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepcomm%2Fcolorwheel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepcomm%2Fcolorwheel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepcomm%2Fcolorwheel/lists"}