{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# `Spectra` Walkthrough\n", "\n", "This notebook provides basic documentation of the [`spectra` Python library](https://github.com/jsvine/spectra), which aims to simplify the process of creating color scales and converting colors from one \"color space\" to another." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import spectra" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Note: To visually display the colors we create, let's define and use this `swatches` function:" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from IPython.display import HTML" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "swatch_template = \"\"\"\n", "