Published
Edited
May 13, 2022
11 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
gl = renderer.gl
Insert cell
mesh = new OGL.Mesh(gl, { geometry, program })
Insert cell
renderer = new OGL.Renderer({ dpr: 2 })
Insert cell
height = width > 700 ? (2 * width) / 3 : width
Insert cell
autoResize = {
// this changes with Observable reactive variable width
renderer.setSize(width, height);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mouse = new OGL.Vec2(-1)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
OGL = import('https://unpkg.com/ogl@0.0.65/src/index.mjs?module')
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