Get started with regl CDN
MIT licensed
REGL is a low-level, GPU-accelerated library for creating and rendering computer graphics.
Tags:- webgl
- stackgl
- regl
- gl
- graphics
- computer graphics
- opengl
- glsl
- data
- flow
- reactive
- functional
Stable version
Copied!
How to start using regl CDN
const Regl = require('regl')(/* optional: { width: 800, height: 600 } */);
Regl.clear({ color: [0, 0, 0, 1] }); // Clear the canvas
const rectangle = Regl.shape.rect({
x: 50,
y: 50,
width: 100,
height: 100,
r: 0, // No rounding
fill: [1, 1, 1, 1], // White fill
});
Regl.context(function() {
this.fill(rectangle);
});
Regl.dispose();
Copied!
Copied!
Copied!
Copied!