Published
Edited
Apr 23, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function desaturationSteps (colors, steps=5) {
const dcolors = []
colors.forEach(c => {
const jch = cam02.jch(c)
const js = d3.range(jch.J, 100, (100 - jch.J)/steps)
const cs = d3.range(jch.C, 0, -jch.C/steps)
d3.range(steps).forEach(s => dcolors.push(cam02.jch(js[s], cs[s], jch.h)))
})
return dcolors
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more