Public
Edited
Mar 8, 2024
Fork of Noise
Insert cell
Insert cell
Insert cell
container = container_from(canvas);
Insert cell
sketch = function( p ) {

let step = 10;
p.setup = () => {
p.createCanvas(p.windowWidth, 800);
p.background(0);
p.noStroke();
p.noLoop();
}
p.draw = () => {
for (let x = 0; x < p.width; x+=step) {
for (let y = 0; y < p.height; y+=step) {
let c = 255 * p.noise(0.01 * x, 0.01 * y);
//let c = p.random(0, 255);
p.fill(c);
p.rect(x, y, step, step);
}
}
}
}
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