Published
Edited
Apr 2, 2020
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
const ctx = DOM.context2d(600, 600)
const system = new PrimordialParticleSystem(alpha, beta, n, speed, radius)
while (true){
ctx.fillStyle = 'rgba(255,255,255, .2)'
ctx.fillRect(0,0, ctx.canvas.width, ctx.canvas.height)
system.update()
system.render(ctx)
await Promises.delay(0)
yield ctx.canvas
}
}
Insert cell
Insert cell
Insert cell
Insert cell
import {slider} from "@jashkenas/inputs"
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