GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - facelessuser/coloraide: A library to aid in using colors

BranchesTags
Open more actions menu

Latest commit

 

History

2,437 Commits
2,437 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
coloraide
coloraide
 
 
docs
docs
 
 
requirements
requirements
 
 
tests
tests
 
 
tools
tools
 
 
.babelrc
.babelrc
 
 
.codecov.yml
.codecov.yml
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.pyspelling.yml
.pyspelling.yml
 
 
.stylelintrc
.stylelintrc
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
gulpfile.babel.mjs
gulpfile.babel.mjs
 
 
hatch_build.py
hatch_build.py
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
pyproject.toml
pyproject.toml
 
 
zensical.yml
zensical.yml
 
 

Repository files navigation

Donate via PayPal Coverage Status PyPI Version PyPI Downloads PyPI - Python Version License

ColorAide

Overview

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

>>> 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

About

A library to aid in using colors

facelessuser.github.io/coloraide

Topics

color-contrastcolor-conversioncolor-differencecolor-filterscolor-harmoniescolor-interpolationcolor-manipulationcolor-spacescolor-temperaturecolor-vision-deficiencycolorscolourcsspython

Resources

Readme
MIT license
Activity

Stars

366 stars

Watchers

3 watching

Forks

30 forks
Report repository

Releases

Sponsor this project

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.