This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!pip install matplotlib | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import json | |
grays = [ | |
{ | |
"color": "slate", | |
"lightness": [ 98.41518630825351, 96.82603461349981, 92.87612611494642, 86.89814311332097, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import colors from 'tailwindcss/colors'; | |
import type { Coords } from 'colorjs.io'; | |
import Color from 'colorjs.io'; | |
/** | |
* Simple range function to generate an array of numbers | |
* @param lengthOrStart the length of the array or the start value if end is provided | |
* @param end the (optional) end value | |
* @returns an array of numbers in this range | |
*/ |