{"id":15576435,"url":"https://github.com/njsmith/colorspacious","last_synced_at":"2025-04-05T15:05:33.150Z","repository":{"id":34578519,"uuid":"38525000","full_name":"njsmith/colorspacious","owner":"njsmith","description":"A powerful, accurate, and easy-to-use Python library for doing colorspace conversions","archived":false,"fork":false,"pushed_at":"2019-11-12T09:34:25.000Z","size":1144,"stargazers_count":168,"open_issues_count":15,"forks_count":17,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-04-17T19:09:41.141Z","etag":null,"topics":["color","color-blindness","colour","colour-blindness","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"genericptr/Pas2JS-WebGL","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/njsmith.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-04T06:55:26.000Z","updated_at":"2024-04-02T17:40:45.000Z","dependencies_parsed_at":"2022-09-13T08:12:12.838Z","dependency_job_id":null,"html_url":"https://github.com/njsmith/colorspacious","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njsmith%2Fcolorspacious","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njsmith%2Fcolorspacious/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njsmith%2Fcolorspacious/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njsmith%2Fcolorspacious/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/njsmith","download_url":"https://codeload.github.com/njsmith/colorspacious/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353731,"owners_count":20925329,"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","color-blindness","colour","colour-blindness","python"],"created_at":"2024-10-02T18:49:14.233Z","updated_at":"2025-04-05T15:05:33.134Z","avatar_url":"https://github.com/njsmith.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"colorspacious\n=============\n\n.. image:: https://travis-ci.org/njsmith/colorspacious.svg?branch=master\n   :target: https://travis-ci.org/njsmith/colorspacious\n   :alt: Automated test status\n\n.. image:: https://codecov.io/gh/njsmith/colorspacious/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/njsmith/colorspacious\n   :alt: Test coverage\n\n.. image:: https://readthedocs.org/projects/colorspacious/badge/?version=latest\n   :target: http://colorspacious.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\n.. image:: https://zenodo.org/badge/38525000.svg\n   :target: https://zenodo.org/badge/latestdoi/38525000\n\nColorspacious is a powerful, accurate, and easy-to-use library for\nperforming colorspace conversions.\n\nIn addition to the most common standard colorspaces (sRGB, XYZ, xyY,\nCIELab, CIELCh), we also include: color vision deficiency (\"color\nblindness\") simulations using the approach of Machado et al (2009); a\ncomplete implementation of `CIECAM02\n\u003chttps://en.wikipedia.org/wiki/CIECAM02\u003e`_; and the perceptually\nuniform CAM02-UCS / CAM02-LCD / CAM02-SCD spaces proposed by Luo et al\n(2006).\n\nTo get started, simply write::\n\n  from colorspacious import cspace_convert\n\n  Jp, ap, bp = cspace_convert([64, 128, 255], \"sRGB255\", \"CAM02-UCS\")\n\nThis converts an sRGB value (represented as integers between 0-255) to\nCAM02-UCS `J'a'b'` coordinates (assuming standard sRGB viewing\nconditions by default). This requires passing through 4 intermediate\ncolorspaces; ``cspace_convert`` automatically finds the optimal route\nand applies all conversions in sequence:\n\nThis function also of course accepts arbitrary NumPy arrays, so\nconverting a whole image is just as easy as converting a single value.\n\nDocumentation:\n  http://colorspacious.readthedocs.org/\n\nInstallation:\n  ``pip install colorspacious``\n\nDownloads:\n  https://pypi.python.org/pypi/colorspacious/\n\nCode and bug tracker:\n  https://github.com/njsmith/colorspacious\n\nContact:\n  Nathaniel J. Smith \u003cnjs@pobox.com\u003e\n\nDependencies:\n  * Python 2.6+, or 3.3+\n  * NumPy\n\nDeveloper dependencies (only needed for hacking on source):\n  * nose: needed to run tests\n\nLicense:\n  MIT, see LICENSE.txt for details.\n\nReferences for algorithms we implement:\n  * Luo, M. R., Cui, G., \u0026 Li, C. (2006). Uniform colour spaces based on\n    CIECAM02 colour appearance model. Color Research \u0026 Application, 31(4),\n    320–330. doi:10.1002/col.20227\n  * Machado, G. M., Oliveira, M. M., \u0026 Fernandes, L. A. (2009). A\n    physiologically-based model for simulation of color vision\n    deficiency. Visualization and Computer Graphics, IEEE Transactions on,\n    15(6), 1291–1298. http://www.inf.ufrgs.br/~oliveira/pubs_files/CVD_Simulation/CVD_Simulation.html\n\nOther Python packages with similar functionality that you might want\nto check out as well or instead:\n\n* ``colour``: http://colour-science.org/\n* ``colormath``: http://python-colormath.readthedocs.org/\n* ``ciecam02``: https://pypi.python.org/pypi/ciecam02/\n* ``ColorPy``: http://markkness.net/colorpy/ColorPy.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjsmith%2Fcolorspacious","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjsmith%2Fcolorspacious","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjsmith%2Fcolorspacious/lists"}