Documentation
Every demo on this site is a thin harness over a shared library. A demo composes classes, wires up controls, and renders; it owns no drawing logic of its own. This section documents the library — the contracts, the parameters, and why they are shaped the way they are.
Each major class, or each group of closely related classes, gets its own page. Behaviour shared across a group is written down once on that group’s page rather than repeated per class, so that adding a new member to the group means checking it against a single list.
Pages
- Stroke Definition —
StrokeDef: the points, the width model, and the renderer reference.StrokeDef。点の配列、幅のモデル、そしてレンダラへの参照。 - Renderers — the contract every stroke renderer honours, and
RibbonStrokeRenderer.
すべてのストロークレンダラが従う契約と、RibbonStrokeRenderer。 - Curves — natural and Hobby curve constructions over resampled knots.
再サンプリングしたノット上のnatural曲線とHobby曲線の構築。 - Path Effects — generators that derive new paths from a base path.
元のパスから新しいパスを導く生成器。 - Palette — OKLCH palette generation and selection.
OKLCHによるパレットの生成と選択。 - Drawing Tool — the reusable instrument:
setupDrawingTool, the tool registry, and the mark builder.
再利用可能な楽器。setupDrawingTool、ツールレジストリ、そしてマークビルダー。 - Initializers — compositions that fill a fresh canvas.
まっさらなキャンバスを満たす構成。 - Player — the drawing log, and the standalone playback and recording engine.
描画のログと、独立した再生・録画エンジン。 - Writing Style — the conventions every explanation on this site follows.
このサイトのすべての説明が従う規約。
Layout
public/lib/ holds library code. public/demos/<name>/ holds demos. Demos import from the library by relative path; the library never imports from a demo.
public/lib/ にライブラリのコード、public/demos/<name>/ に各デモを置きます。デモは相対パスでライブラリを読み込みますが、ライブラリがデモを読み込むことはありません。
Documentation pages describe the library only. What a particular demo does, and what it taught us, stays on that demo's own page.
ドキュメントのページはライブラリについてのみ記述します。個々のデモが何をしていて、そこから何が分かったかは、そのデモ自身のページに残します。