{"id":17238122,"url":"https://github.com/jsantell/interpolate-color","last_synced_at":"2025-03-26T02:16:23.437Z","repository":{"id":8929519,"uuid":"10659942","full_name":"jsantell/interpolate-color","owner":"jsantell","description":"A simple color interpolator component","archived":false,"fork":false,"pushed_at":"2013-06-18T08:33:22.000Z","size":164,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T23:36:14.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://jsantell.github.io/interpolate-color/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsantell.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}},"created_at":"2013-06-13T06:09:51.000Z","updated_at":"2015-02-01T20:00:20.000Z","dependencies_parsed_at":"2022-08-27T23:11:03.607Z","dependency_job_id":null,"html_url":"https://github.com/jsantell/interpolate-color","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/jsantell%2Finterpolate-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsantell%2Finterpolate-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsantell%2Finterpolate-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsantell%2Finterpolate-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsantell","download_url":"https://codeload.github.com/jsantell/interpolate-color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245573893,"owners_count":20637674,"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-15T05:44:42.756Z","updated_at":"2025-03-26T02:16:23.416Z","avatar_url":"https://github.com/jsantell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# interpolate-color\n\n[view example](http://jsantell.github.io/interpolate-color)\n\nA simple color interpolator component\n\n## Installation\n\n    $ component install jsantell/interpolate-color\n\n## Example Usage\n\n```javascript\nvar interpolate = require('interpolate-color');\nvar red = 'hsl(0, 100%, 50%)';\nvar green = 'hsl(120, 100%, 50%)';\n\ninterpolate(red, green, 0.5); // 'hsl(60, 100%, 50%)'\n```\n\n## API\n\n### interpolate(from, to, step, [precision])\n\n- `from` the starting position HSL string (`hsl(0, 100%, 50%)`)\n- `to` the end position HSL string\n- `step` the normalized value (between 0 and 1) of the interpolation. A step of `0.5` would be the middle of `from` and `to`\n- `precision` an optional argument of how many points of precision the results should have (default: `0`)\n\n\n## Tests\n\nView `./test/index.html`\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsantell%2Finterpolate-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsantell%2Finterpolate-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsantell%2Finterpolate-color/lists"}