# Colour
**Repository Path**: mirrors/Colour
## Basic Information
- **Project Name**: Colour
- **Description**: Color是一个Python颜色科学软件包,实现了大量的颜色理论转换和算法
- **Primary Language**: Python
- **License**: BSD-3-Clause
- **Default Branch**: develop
- **Homepage**: https://www.oschina.net/p/colour
- **GVP Project**: No
## Statistics
- **Stars**: 8
- **Forks**: 0
- **Created**: 2018-02-19
- **Last Updated**: 2025-10-25
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
.. begin-trim-long-description
.. raw:: html
.. end-trim-long-description
|
.. start-badges
|NumFOCUS| |actions| |coveralls| |codacy| |version| |zenodo|
.. |NumFOCUS| image:: https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat-square&colorA=E1523D&colorB=007D8A
:target: http://numfocus.org
:alt: Powered by NumFOCUS
.. |actions| image:: https://img.shields.io/github/actions/workflow/status/colour-science/colour/.github/workflows/continuous-integration-quality-unit-tests.yml?branch=develop&style=flat-square
:target: https://github.com/colour-science/colour/actions
:alt: Develop Build Status
.. |coveralls| image:: http://img.shields.io/coveralls/colour-science/colour/develop.svg?style=flat-square
:target: https://coveralls.io/r/colour-science/colour
:alt: Coverage Status
.. |codacy| image:: https://img.shields.io/codacy/grade/1f3b8d3bba7440ba9ebc1170589628b1/develop.svg?style=flat-square
:target: https://app.codacy.com/gh/colour-science/colour
:alt: Code Grade
.. |version| image:: https://img.shields.io/pypi/v/colour-science.svg?style=flat-square
:target: https://pypi.org/project/colour-science
:alt: Package Version
.. |zenodo| image:: https://img.shields.io/badge/DOI-10.5281/zenodo.13917514-blue.svg?style=flat-square
:target: https://dx.doi.org/10.5281/zenodo.13917514
:alt: DOI
.. end-badges
`Colour `__ is an open-source
`Python `__ package providing a comprehensive number
of algorithms and datasets for colour science.
It is freely available under the
`BSD-3-Clause `__ terms.
**Colour** is an affiliated project of `NumFOCUS `__, a
501(c)(3) nonprofit in the United States.
.. contents:: **Table of Contents**
:backlinks: none
:depth: 2
.. sectnum::
Draft Release Notes
-------------------
The draft release notes of the
`develop `__
branch are available at this
`url `__.
Sponsors
--------
We are grateful 💖 for the support of our
`sponsors `__.
If you'd like to join them, please consider
`becoming a sponsor on OpenCollective `__.
.. begin-trim-long-description
.. raw:: html
, )
.. image:: https://colour.readthedocs.io/en/develop/_static/Examples_Plotting_Plot_Visible_Spectrum_Section.png
.. code-block:: python
from colour.plotting import *
plot_RGB_colourspace_section("sRGB", section_colours="RGB", section_opacity=0.15)
.. code-block:: text
(
, )
.. image:: https://colour.readthedocs.io/en/develop/_static/Examples_Plotting_Plot_RGB_Colourspace_Section.png
Colour Temperature
******************
.. code-block:: python
from colour.plotting import *
plot_planckian_locus_in_chromaticity_diagram_CIE1960UCS(["A", "B", "C"])
.. code-block:: text
(
, )
.. image:: https://colour.readthedocs.io/en/develop/_static/Examples_Plotting_CCT_CIE_1960_UCS_Chromaticity_Diagram.png
Thin Film Interference
**********************
.. code-block:: python
from colour.plotting import *
plot_thin_film_iridescence([1.0, 1.33, 1.0])
.. code-block:: text
(
, )
.. image:: https://colour.readthedocs.io/en/develop/_static/Examples_Plotting_Thin_Film_Iridescence.png
User Guide
----------
Installation
~~~~~~~~~~~~
**Colour** and its primary dependencies can be easily installed from the
`Python Package Index `__
by issuing this command in a shell:
.. code-block:: bash
$ pip install --user colour-science
The detailed installation procedure for the secondary dependencies is
described in the `Installation Guide `__.
**Colour** is also available for `Anaconda `__
from *Continuum Analytics* via `conda-forge `__:
.. code-block:: bash
$ conda install -c conda-forge colour-science
Tutorial
~~~~~~~~
The `static tutorial `__
provides an introduction to **Colour**. An interactive version is available via
`Google Colab `__.
How-To
~~~~~~
The `Google Colab How-To `__
guide for **Colour** shows various techniques to solve specific problems and
highlights some interesting use cases.
Contributing
~~~~~~~~~~~~
If you would like to contribute to **Colour**, please refer to the following
`Contributing `__ guide.
Changes
~~~~~~~
The changes are viewable on the `Releases `__ page.
Bibliography
~~~~~~~~~~~~
The bibliography is available on the `Bibliography `__ page.
It is also viewable directly from the repository in
`BibTeX `__
format.
API Reference
-------------
The main technical reference for **Colour** is the *API Reference*:
- `Release `__
- `Develop `__
See Also
--------
Software
~~~~~~~~
**Python**
- `ColorAide `__ by Muse, I.
- `ColorPy `__ by Kness, M.
- `Colorspacious `__ by Smith, N. J., et al.
- `python-colormath `__ by Taylor, G., et al.
**Go**
- `go-colorful `__ by Beyer, L., et al.
**.NET**
- `Colourful `__ by Pažourek, T., et al.
**Julia**
- `Colors.jl `__ by Holy, T., et al.
**Matlab & Octave**
- `COLORLAB `__ by Malo, J., et al.
- `Psychtoolbox `__ by Brainard, D., et al.
- `The Munsell and Kubelka-Munk Toolbox `__ by Centore, P.
Code of Conduct
---------------
The *Code of Conduct*, adapted from the `Contributor Covenant 1.4 `__,
is available on the `Code of Conduct `__ page.
Contact & Social
----------------
The *Colour Developers* can be reached via different means:
- `Email `__
- `Facebook `__
- `Github Discussions `__
- `Gitter `__
- `X `__
- `Bluesky `__
.. begin-trim-long-description
Thank You!
----------
.. raw:: html
.. end-trim-long-description
About
-----
| **Colour** by Colour Developers
| Copyright 2013 Colour Developers – `colour-developers@colour-science.org `__
| This software is released under terms of BSD-3-Clause: https://opensource.org/licenses/BSD-3-Clause
| `https://github.com/colour-science/colour `__