Examples

These scripts are grouped by visual primitive or workflow.

General

  • box.js - Run
  • box-tex.js - Run
  • box-instanced-grid.js - Run
  • tex-map.js - Run
  • cmp-noise.js - Run
  • cmp-stack.js - Run

Line loop

  • lineloop/lineloop.js - Run
  • lineloop/sphere.js - Run
  • lineloop/thread.js - Run

Lines

  • lines/lines.js - Run
  • lines/noise.js - Run

Line strip

  • linestrip/thread.js - Run

Points

  • points/dots.js - Run
  • points/grid.js - Run
  • points/noise.js - Run
  • points/noise-flow.js - Run
  • points/squares.js - Run

Running examples locally

  1. Start the local dev server:
npm ci
npm run dev
  1. Edit dev/index.js to load one of these files, or paste snippets into your host app using the same APIs.

For an immediate zero-edit sanity check, open examples/quickstart.html in a static server that serves the repository root (it expects ../dist/triode.js).