Published
Edited
Mar 12, 2021
5 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
snapshots = savedSnapshots.slice(0)
Insert cell
Insert cell
JSON.stringify(snapshots)
Insert cell
restoreSnapshot = {
let snap = snapshots[preset];
[turns, thick, length, r2, r1, diskPower, diskSize, modulation].forEach(
(slider, i) => {
slider.value = snap[i];
slider.dispatchEvent(new CustomEvent("input"));
}
);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
createRegl = require('regl@1.4.2/dist/regl.js')
Insert cell
import { Range, Radio, Checkbox } from "@observablehq/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