Three Blocks

Text website / source

Open preview
# text

This Three.js application renders the scene in a worker. Pointer, viewport and scroll input come from the page.

```sh
npm install
npm run dev
```

Edit `src/scene.ts` to change the geometry, lighting or animation. Add another scene in `src/scenes/<name>/scene.ts`, export a `createScene` function, and open `?scene=<name>`.

Edit the English and Japanese copy in `index.html`. Mark text with `data-canvas-text` to mirror its DOM layout in the worker. Font definitions live in `three-blocks.text.ts`. The bundled font atlases cover the specimen and are licensed under SIL OFL 1.1.

Run `npm run typecheck` and `npm run lint` to check your changes. Build with `npm run build`. Serve the resulting `dist/` directory on a static host or test it locally with `npm run preview`.

Original starter code is licensed under MIT. [License](LICENSE) · [Third-party notices](NOTICE)