Published
Edited
Dec 1, 2021
1 fork
Importers
3 stars
Also listed in…
Color
Insert cell
Insert cell
lut = name =>
d3
.tsv(
`https://raw.githubusercontent.com/mikeperrins/cmocean-LUT-ImageJ/master/${name}.lut`,
d => d3.rgb(d["Red"], d["Green"], d["Blue"])
)
.then(l => t => l[(t * (l.length - 1e-7)) | 0])
Insert cell
lut("Algae").then(ramp)
Insert cell
lut("Amp").then(ramp)
Insert cell
lut("Balance").then(ramp) //diverging
Insert cell
lut("Curl").then(ramp) //diverging
Insert cell
lut("Deep").then(ramp)
Insert cell
lut("Delta").then(ramp) //diverging
Insert cell
lut("Dense").then(ramp)
Insert cell
lut("Gray").then(ramp)
Insert cell
lut("Haline").then(ramp)
Insert cell
lut("Ice").then(ramp)
Insert cell
lut("Matter").then(ramp)
Insert cell
lut("Oxy").then(ramp)
Insert cell
lut("Phase").then(ramp) // cyclic
Insert cell
lut("Solar").then(ramp)
Insert cell
lut("Speed").then(ramp)
Insert cell
lut("Tempo").then(ramp)
Insert cell
lut("Thermal").then(ramp)
Insert cell
lut("Turbid").then(ramp)
Insert cell
import { ramp } from "@mbostock/color-ramp"
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