sunflowerseastar / hilbert-3d

interactive 3D Hilbert space-filling curve

Home Page:https://fractals.sunflowerseastar.com/hilbert-3d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hilbert 3D

Written with three.js.

Quick Start

Dev:

# install deps
yarn
# run dev.js esbuild watcher
yarn start
# visit localhost:8080 (separate terminal)
npx http-server

Build:

# minified esbuild
yarn build

Both yarn start and yarn build create a public/out.js bundle.

Structure

  • public/ - static html/css + dev & build output
    • index.html - simple markup
    • style.css - simple styles
    • out.js - bundle file from yarn start or yarn build
  • src/ - js to be bundled
    • main.ts - entry for index.html
    • Path3.ts - helper Curve class for TubeGeometry

About

interactive 3D Hilbert space-filling curve

https://fractals.sunflowerseastar.com/hilbert-3d

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 79.9%Language:TypeScript 18.5%Language:HTML 1.5%Language:CSS 0.2%