Published
Edited
May 18, 2020
Insert cell
Insert cell
Insert cell
draw()
Insert cell
function *draw() {
let gl = regl._gl;
setupDefault(() => {
gl.enable(gl.SCISSOR_TEST);
gl.scissor(10, 10, 100, 100);
regl.clear({color: [0., 1., 0, 1.0], depth: 1});
gl.scissor(100, 100, 100, 100);
gl.viewport(100, 100, 100, 100);
drawGradient();
gl.scissor(200, 200, 100, 100);
gl.viewport(200, 200, 100, 100);
drawGradient();
});
yield regl.container
}
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