{"id":40284283,"url":"https://github.com/jzecca/color-curve-adjust","last_synced_at":"2026-01-20T04:07:16.577Z","repository":{"id":57203247,"uuid":"191379304","full_name":"jzecca/color-curve-adjust","owner":"jzecca","description":"Performs a Photoshop/GIMP curve adjustment on a RGB color","archived":false,"fork":false,"pushed_at":"2021-10-20T22:29:06.000Z","size":127,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-26T05:58:17.695Z","etag":null,"topics":["color","curve","gimp","npm-package","photoshop"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jzecca.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":"2019-06-11T13:39:18.000Z","updated_at":"2025-05-20T21:45:16.000Z","dependencies_parsed_at":"2022-09-17T00:51:33.956Z","dependency_job_id":null,"html_url":"https://github.com/jzecca/color-curve-adjust","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jzecca/color-curve-adjust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzecca%2Fcolor-curve-adjust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzecca%2Fcolor-curve-adjust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzecca%2Fcolor-curve-adjust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzecca%2Fcolor-curve-adjust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jzecca","download_url":"https://codeload.github.com/jzecca/color-curve-adjust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzecca%2Fcolor-curve-adjust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28595481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","curve","gimp","npm-package","photoshop"],"created_at":"2026-01-20T04:07:14.515Z","updated_at":"2026-01-20T04:07:16.570Z","avatar_url":"https://github.com/jzecca.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# color-curve-adjust\n\n[![Build Status](https://img.shields.io/github/workflow/status/jzecca/color-curve-adjust/CI?logo=github\u0026style=flat-square)](https://github.com/jzecca/color-curve-adjust/actions/workflows/ci.yaml)\n[![Coverage](https://img.shields.io/codecov/c/gh/jzecca/color-curve-adjust?logo=codecov\u0026style=flat-square)](https://codecov.io/gh/jzecca/color-curve-adjust)\n\n\u003e Performs a Photoshop/GIMP curve adjustment on a RGB color\n\nBased on [CSPL.js](https://github.com/kuckir/CSPL.js).\nRead more about the algorithm [here](http://blog.ivank.net/interpolation-with-cubic-splines.html).\n\n## Install\n\n```\n$ npm install color-curve-adjust\n```\n\n## Usage\n\n- Edit your curve in Photoshop\n\n    ![Photoshop curve](example.png)\n\n- Create an array of each point of the curve\n\n    ```ts\n    const curve = [\n        { x: 0, y: 85 },\n        { x: 50, y: 120 },\n        { x: 140, y: 200 },\n        { x: 190, y: 225 },\n        { x: 255, y: 255 },\n    ];\n    ```\n\n- Import the module and call it with a color and your array\n\n    ```ts\n    import curveAdjust from 'color-curve-adjust';\n\n    curveAdjust('#5a2149', curve);\n    //=\u003e '#9d6b8d'\n\n    curveAdjust('#5a2149', curve, 'r');   // adjust only the red channel\n    //=\u003e '#9d2149'\n  \n    curveAdjust('#5a2149', curve, 'gb');  // adjust only green \u0026 blue channels\n    //=\u003e '#5a6b8d'\n    ```\n\n## License\n\nMIT © [Jérôme Zecca](https://zed-k.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzecca%2Fcolor-curve-adjust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjzecca%2Fcolor-curve-adjust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzecca%2Fcolor-curve-adjust/lists"}