An open API service indexing awesome lists of open source software.

https://github.com/davidayotte/bruhat-tits

Bruhat-Tits tree plotter using Python Imaging Library
https://github.com/davidayotte/bruhat-tits

Last synced: 3 months ago
JSON representation

Bruhat-Tits tree plotter using Python Imaging Library

Awesome Lists containing this project

README

        

# Bruhat-Tits
Bruhat-Tits tree plotter (see [wikipedia](https://en.wikipedia.org/wiki/Building_(mathematics))). This is how I generated my profile picture.

## Functions

* `angle_rel`: utility function to compute the angle between tree branches;
* `Tree`: draw using [PIL](https://pillow.readthedocs.io/en/stable/) the branches of the tree (uses recursion);
* `BT_Tree`: first draw the base of the tree and then use the `Tree` function to complete the Bruhat-Tits tree.