Published
Edited
May 21, 2022
4 forks
5 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
p = params.p || getRandomPalette()
Insert cell
palette = params.palette || shuffle(p)
Insert cell
seed = params.seed || Date.now()
Insert cell
N = params.N || 100
Insert cell
Insert cell
Insert cell
svg`<svg width="${w * .6}" viewBox="0 0 ${w} ${h}" style="background: ${palette[0]}">
${array(100).map(d => {
return d
})}
</svg>`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {array, PRNG, PI, TAU, PVector} from '@makio135/utilities'
Insert cell
import {getRandomPalette, displayPalettes, scales, palettes} from '@makio135/give-me-colors'
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