Published
Edited
Sep 5, 2019
9 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
customMixer = (x,i) => {
// custom function for mixing channel values
// x = all pixel info; i = pixel number to mix (there are 4 values per pixel)
const i0 = i*4 // r = x[i0]; g = x[i0 + 1]; b = x[i0 + 2]; a = x[i0 + 3]
return x[i0]/2 + x[i0 + 1]
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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