Skip to content

metaquanta/metatile

Repository files navigation

Metatile

Penrose-Rhomb

Pinwheel

Ammann-Beenker

Render substitution tilings live in your browser.

Some Demos:

For a list of implemented rules, see src/rules. While most files in rules are individual substitution rules, pinwheel.ts can generate any of the countably infinite family of pinwheel-like tilings described by Sadun.

TilingElement.ts is the Web Component interface to metatile. As a web-component, most knobs are exposed via HTML attributes.

<mq-tiling
    rule="Ammann-Beenker"
    v="100,5"
    u="1500,1500"
></mq-tiling>

See params.ts for a complete list.

Alternatively, most of the knobs can be adjusted via the GET string of the demo URL.

A PNG can be saved via the canvas' context menu in Firefox and Chrome. Instructions for the SVG and WebGL renderers are forthcoming.

New rules are easy to add and pull requests are welcome.

Pictured right:

About

Render some non-periodic substitution tilings

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published