{"id":15548031,"url":"https://github.com/afc163/color3d","last_synced_at":"2025-04-09T19:13:13.679Z","repository":{"id":57203375,"uuid":"101770814","full_name":"afc163/color3d","owner":"afc163","description":"Display color spaces with three.js","archived":false,"fork":false,"pushed_at":"2019-02-26T09:07:00.000Z","size":2754,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T19:12:57.837Z","etag":null,"topics":["color","colors","colorspace","hsl","hsv","threejs"],"latest_commit_sha":null,"homepage":"https://afc163.github.io/color3d/","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/afc163.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}},"created_at":"2017-08-29T14:31:40.000Z","updated_at":"2024-03-24T04:32:55.000Z","dependencies_parsed_at":"2022-09-17T06:21:45.039Z","dependency_job_id":null,"html_url":"https://github.com/afc163/color3d","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/afc163%2Fcolor3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afc163%2Fcolor3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afc163%2Fcolor3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afc163%2Fcolor3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afc163","download_url":"https://codeload.github.com/afc163/color3d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094987,"owners_count":21046770,"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":["color","colors","colorspace","hsl","hsv","threejs"],"created_at":"2024-10-02T13:15:30.651Z","updated_at":"2025-04-09T19:13:13.644Z","avatar_url":"https://github.com/afc163.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# color3d [![NPM version](https://img.shields.io/npm/v/color3d.svg?style=flat)](https://npmjs.org/package/color3d)\n\nDisplay color spaces with three.js.\n\n![screen shot](https://user-images.githubusercontent.com/507615/29872910-161eb9e0-8dc4-11e7-94f9-722770872a95.png)\n\n- [Live Demo](https://afc163.github.io/color3d)\n- [Color Space Online Tool](http://afc163.github.io/color3d/tool.html)\n\n## Install\n\n```\nnpm install color3d --save\n```\n\n## Usage\n\n```jsx\nimport Color3d from 'color3d';\n\nconst color3d = new Color3d([\n  \"#FFF0F6\",\n  \"#FFD6E7\",\n  \"#FFADD2\",\n  \"#FF85C0\",\n  \"#F759AB\",\n  \"#EB2F96\",\n  \"#C41D7F\",\n  \"#9E1068\",\n  \"#780650\",\n  \"#520339\",\n], {\n  spaceMode: 'hsv',\n  background: '#000000',\n});\n\n// render into dom\ncolor3d.render(document.getElementById('container'));\n\n// change colors\ncolor3d.updateData([\n  \"#F0F5FF\",\n  \"#D6E4FF\",\n  \"#ADC6FF\",\n  \"#82A2FA\",\n  \"#5579ED\",\n  \"#2D51E0\",\n  \"#1C36BA\",\n  \"#0F2194\",\n  \"#05106E\",\n  \"#030747\",\n]);\n\n// change color space\ncolor3d.changeSpaceMode('hsl');  // hsv, hsl, rbg, lab\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafc163%2Fcolor3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafc163%2Fcolor3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafc163%2Fcolor3d/lists"}