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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more