Colour - Colour Science for Python

In [1]:
from IPython.core.display import Image

Image(filename="resources/images/Colour_Logo_Medium_001.png")
Out[1]:

Introduction

Colour is a Python colour science package implementing a comprehensive number of colour theory transformations and algorithms.

In [2]:
from colour.plotting import *
In [3]:
colour_style();
In [4]:
plot_visible_spectrum();

Usage

This notebook is a companion guide and usage showcase. Most of the public API is available from the root colour namespace:

In [5]:
import colour

print(colour.__all__[:20] + ["..."])
['domain_range_scale', 'get_domain_range_scale', 'set_domain_range_scale', 'CHROMATIC_ADAPTATION_METHODS', 'CHROMATIC_ADAPTATION_TRANSFORMS', 'CMCCAT2000_VIEWING_CONDITIONS', 'chromatic_adaptation', 'CubicSplineInterpolator', 'Extrapolator', 'KernelInterpolator', 'NearestNeighbourInterpolator', 'LinearInterpolator', 'NullInterpolator', 'PchipInterpolator', 'SpragueInterpolator', 'TABLE_INTERPOLATION_METHODS', 'kernel_cardinal_spline', 'kernel_lanczos', 'kernel_linear', 'kernel_nearest_neighbour', '...']