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]:
%matplotlib inline

In [3]:
import colour
from colour.plotting import *

colour.filter_warnings(True, False)

colour_plotting_defaults()

visible_spectrum_plot()


Usage

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


In [4]:
import colour

print(colour.__all__[:5] + ["..."])


['handle_numpy_errors', 'ignore_numpy_errors', 'raise_numpy_errors', 'print_numpy_errors', 'warn_numpy_errors', '...']