Published
Edited
Sep 6, 2020
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
colors1 = mainColors(image)
Insert cell
Insert cell
colors2 = mainColors(image, {maxColors: 4})
Insert cell
palette(colors2)
Insert cell
colors3 = mainColors(image, { maxColors: 3, minOpacity: 0.9 })
Insert cell
Insert cell
colors4 = mainColors(image, { maxColors: 3, minOpacity: 0.9, minDistance: 10 })
Insert cell
palette(colors4)
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