Published
Edited
Oct 25, 2019
Importers
1 star
Insert cell
md`# Canvas Noise Map`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
pixelColor = (pixelData, imageWidth, x, y) => {
const idx = (~~x + ~~y * imageWidth) * 4;
const r = pixelData[idx];
const g = pixelData[idx + 1];
const b = pixelData[idx + 2];
const a = pixelData[idx + 3];
return [r, g, b, a];
}
Insert cell
noiseValue(noisemap, 1, 0)
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