coloraide


Namecoloraide JSON
Version 4.2.2 PyPI version JSON
download
home_pageNone
SummaryA color library for Python.
upload_time2025-02-22 16:24:50
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords color color-contrast color-conversion color-difference color-filters color-harmonies color-interpolation color-manipulation color-spaces color-temperature color-vision-deficiency colour css
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Donate via PayPal][donate-image]][donate-link]
[![Build][github-ci-image]][github-ci-link]
[![Coverage Status][codecov-image]][codecov-link]
[![PyPI Version][pypi-image]][pypi-link]
[![PyPI Downloads][pypi-down]][pypi-link]
[![PyPI - Python Version][python-image]][pypi-link]
![License][license-image-mit]

# ColorAide

## Overview

ColorAide is a pure Python, object oriented approach to colors.

```python
>>> from coloraide import Color
>>> c = Color("red")
>>> c.to_string()
'rgb(255 0 0)'
>>> c.convert('hsl').to_string()
'hsl(0 100% 50%)'
>>> c.set("lch.chroma", 30).to_string()
'rgb(173.81 114.29 97.218)'
>>> Color("blue").mix("yellow", space="lch").to_string()
'rgb(255 65.751 107.47)'
```

ColorAide particularly has a focus on the following:

- Accurate colors.

- Proper round tripping (where reasonable).

- Be generally easy to pick up for the average user.

- Support modern CSS color spaces and syntax.

- Make accessible many new and old non-CSS color spaces.

- Provide a number of useful utilities such as interpolation, color distancing, blending, gamut mapping, filters,
  correlated color temperature, color vision deficiency simulation, etc.

- Provide a plugin API to extend supported color spaces and approaches to various utilities.

- Allow users to configure defaults to their liking.

With ColorAide, you can specify a color, convert it to other color spaces, mix it with other colors, output it in
different CSS formats, and much more!

# Documentation

https://facelessuser.github.io/coloraide

## License

MIT

[github-ci-image]: https://github.com/facelessuser/coloraide/workflows/build/badge.svg?branch=main&event=push
[github-ci-link]: https://github.com/facelessuser/coloraide/actions?query=workflow%3Abuild+branch%3Amain
[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/coloraide/main.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333
[codecov-link]: https://codecov.io/github/facelessuser/coloraide
[pypi-image]: https://img.shields.io/pypi/v/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
[pypi-down]: https://img.shields.io/pypi/dm/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333
[pypi-link]: https://pypi.python.org/pypi/coloraide
[python-image]: https://img.shields.io/pypi/pyversions/coloraide?logo=python&logoColor=aaaaaa&labelColor=333333
[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333
[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal
[donate-link]: https://www.paypal.me/facelessuser

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "coloraide",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "color, color-contrast, color-conversion, color-difference, color-filters, color-harmonies, color-interpolation, color-manipulation, color-spaces, color-temperature, color-vision-deficiency, colour, css",
    "author": null,
    "author_email": "Isaac Muse <Isaac.Muse@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/4e/c5/cabc0c06e6caf2ca94fb189bfc4e0fe2d02fb3722b9e2e96cb5e8e68c0a0/coloraide-4.2.2.tar.gz",
    "platform": null,
    "description": "[![Donate via PayPal][donate-image]][donate-link]\n[![Build][github-ci-image]][github-ci-link]\n[![Coverage Status][codecov-image]][codecov-link]\n[![PyPI Version][pypi-image]][pypi-link]\n[![PyPI Downloads][pypi-down]][pypi-link]\n[![PyPI - Python Version][python-image]][pypi-link]\n![License][license-image-mit]\n\n# ColorAide\n\n## Overview\n\nColorAide is a pure Python, object oriented approach to colors.\n\n```python\n>>> from coloraide import Color\n>>> c = Color(\"red\")\n>>> c.to_string()\n'rgb(255 0 0)'\n>>> c.convert('hsl').to_string()\n'hsl(0 100% 50%)'\n>>> c.set(\"lch.chroma\", 30).to_string()\n'rgb(173.81 114.29 97.218)'\n>>> Color(\"blue\").mix(\"yellow\", space=\"lch\").to_string()\n'rgb(255 65.751 107.47)'\n```\n\nColorAide particularly has a focus on the following:\n\n- Accurate colors.\n\n- Proper round tripping (where reasonable).\n\n- Be generally easy to pick up for the average user.\n\n- Support modern CSS color spaces and syntax.\n\n- Make accessible many new and old non-CSS color spaces.\n\n- Provide a number of useful utilities such as interpolation, color distancing, blending, gamut mapping, filters,\n  correlated color temperature, color vision deficiency simulation, etc.\n\n- Provide a plugin API to extend supported color spaces and approaches to various utilities.\n\n- Allow users to configure defaults to their liking.\n\nWith ColorAide, you can specify a color, convert it to other color spaces, mix it with other colors, output it in\ndifferent CSS formats, and much more!\n\n# Documentation\n\nhttps://facelessuser.github.io/coloraide\n\n## License\n\nMIT\n\n[github-ci-image]: https://github.com/facelessuser/coloraide/workflows/build/badge.svg?branch=main&event=push\n[github-ci-link]: https://github.com/facelessuser/coloraide/actions?query=workflow%3Abuild+branch%3Amain\n[codecov-image]: https://img.shields.io/codecov/c/github/facelessuser/coloraide/main.svg?logo=codecov&logoColor=aaaaaa&labelColor=333333\n[codecov-link]: https://codecov.io/github/facelessuser/coloraide\n[pypi-image]: https://img.shields.io/pypi/v/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333\n[pypi-down]: https://img.shields.io/pypi/dm/coloraide.svg?logo=pypi&logoColor=aaaaaa&labelColor=333333\n[pypi-link]: https://pypi.python.org/pypi/coloraide\n[python-image]: https://img.shields.io/pypi/pyversions/coloraide?logo=python&logoColor=aaaaaa&labelColor=333333\n[license-image-mit]: https://img.shields.io/badge/license-MIT-blue.svg?labelColor=333333\n[donate-image]: https://img.shields.io/badge/Donate-PayPal-3fabd1?logo=paypal\n[donate-link]: https://www.paypal.me/facelessuser\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A color library for Python.",
    "version": "4.2.2",
    "project_urls": {
        "Homepage": "https://github.com/facelessuser/coloraide"
    },
    "split_keywords": [
        "color",
        " color-contrast",
        " color-conversion",
        " color-difference",
        " color-filters",
        " color-harmonies",
        " color-interpolation",
        " color-manipulation",
        " color-spaces",
        " color-temperature",
        " color-vision-deficiency",
        " colour",
        " css"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fa4b4a3e3fc527a9a2e08574a22236b51ecfb912240cd0073f6267d06c852ece",
                "md5": "8aa2b509b10ce2a901c007b5e1d30ec9",
                "sha256": "8270f0f7e689af82290d5f7dfa027078f7c62701856e2a1a648d5fded1b4e0ca"
            },
            "downloads": -1,
            "filename": "coloraide-4.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8aa2b509b10ce2a901c007b5e1d30ec9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 244097,
            "upload_time": "2025-02-22T16:24:47",
            "upload_time_iso_8601": "2025-02-22T16:24:47.138454Z",
            "url": "https://files.pythonhosted.org/packages/fa/4b/4a3e3fc527a9a2e08574a22236b51ecfb912240cd0073f6267d06c852ece/coloraide-4.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4ec5cabc0c06e6caf2ca94fb189bfc4e0fe2d02fb3722b9e2e96cb5e8e68c0a0",
                "md5": "6249ed80cb88817b2a7070d1661b3140",
                "sha256": "a2e4a7dfead299b5256c90d114154e1ddb67a0f9391059b92dc9a0a23456c716"
            },
            "downloads": -1,
            "filename": "coloraide-4.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "6249ed80cb88817b2a7070d1661b3140",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 21650343,
            "upload_time": "2025-02-22T16:24:50",
            "upload_time_iso_8601": "2025-02-22T16:24:50.451256Z",
            "url": "https://files.pythonhosted.org/packages/4e/c5/cabc0c06e6caf2ca94fb189bfc4e0fe2d02fb3722b9e2e96cb5e8e68c0a0/coloraide-4.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-22 16:24:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "facelessuser",
    "github_project": "coloraide",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "coloraide"
}
        
Elapsed time: 3.33635s