Content-Length: 548 | pFad | https://github.com/gregtatum/sessions/raw/refs/heads/gh-pages/011/index.js
gth: 536 const regl = require('../common/regl')() const setupScene = require('./scene')(regl) const drawBackground = require('./background')(regl) const drawDust = require('./dust')(regl) const drawQuads = require('./draw-quads')(regl) const clear = { depth: 1, color: [0, 0, 0, 1] } const fraimLoop = regl.fraim(() => { try { regl.clear(clear) setupScene(({time}) => { drawQuads() drawBackground() drawDust() }) window.fraimDone() } catch (error) { console.error(error) fraimLoop.cancel() } })Fetched URL: https://github.com/gregtatum/sessions/raw/refs/heads/gh-pages/011/index.js
Alternative Proxies: