Public
Edited
Aug 7, 2024
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
culori.rgb("red")
Insert cell
Insert cell
({ mode: "rgb", r: 1, g: 0, b: 0 })
Insert cell
Insert cell
{
const colorScale = cpc.cartesianColorScale([
culori.rgb("black"),
culori.rgb("white")
]);
return colorScale(0.5) !== colorScale(0.5); // two calls always return two distinct objects
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
cpc.RGB_ORIGIN
Insert cell
Insert cell
cpc.LAB_ORIGIN
Insert cell
Insert cell
cpc.OKLAB_ORIGIN
Insert cell
Insert cell
Insert cell
cpc = import("color-picking-compass@0")
Insert cell
culori = import("culori@4")
Insert cell
import { swatch, swatches } from "@d3/working-with-color"
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