minerscale / hyperbolic

A Python 3 library for generating hyperbolic geometry and drawing it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hyperbolic

This is a Python 3 library for generating hyperbolic geometry and drawing it with the drawSvg library. Currently only the Poincaré disk model is supported.

Install

hyperbolic is available on PyPI:

$ pip3 install hyperbolic

Install drawSvg also to display the hyperbolic geometry:

$ pip3 install drawSvg

Examples

See the iPython notebooks in examples:

Using this library, along with the drawSvg library, you can create art like this hyperbolic weave:

Hyperbolic weave

This weave is built from a tiling of isosceles triangles:

Hyperbolic weave structure

About

A Python 3 library for generating hyperbolic geometry and drawing it

License:MIT License


Languages

Language:Python 100.0%