a replacement to lamination builder that uses manim instead of the browser
Project description
This is a re-implementation of lamination-builder that runs in python without dependencies on a browser and focusing on convenient generation of figures. Instead it uses Manim, and which has several dependencies.
The input format is as follows: A list of laminations to be placed in the figure (tilling is a best effort left to righ and top to bottom Placemen based on a 16:9 screen). The blank lamination is permited.
Each lamination may have of the following fields: polygons, chords (must be a list of lists of length two), point_lables, point_colors ("*" for default color which defaults to red), and points. Omissions in each field will be filled based on the fields that proceed it in the list above. Each lamination must have a "radix" which is the base.
Example:
[
{
"polygons":[["_001","_010","_100"]],
"chords":[["_100","2"]],
"point_lables": {"_001": "starting point", "_010": "maps to _100"},
"point_colors": {"*": "blue", "_001": "red"},
"points": ["1","2","_3"],
"radix": 4
},
{
"radix": 3
}
]
Usage:
commandline TODO
Installation: Follow the manim installation steps.
Feature requests will be entertained. I have yet to see a need for any of the following features: mapping forward, pull backs, automatically placing descriptions or tittles at the top. This is intended to be used in combination with other tools like latex and your own python scripts. I hope this is a reasonable API.
License
Licensed under the The AGPLv3 License (AGPLv3) Copyright (c) 2023 Forrest M. Hilton forrestmhilton@gmail.com You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file manim_lamination_builder-0.1.0.tar.gz
.
File metadata
- Download URL: manim_lamination_builder-0.1.0.tar.gz
- Upload date:
- Size: 37.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7faba13df780f22544ec0e06745b9a4855f34c9c7de7277274ed86467e0ceee |
|
MD5 | bd7f4331e86c15eb75dec2a6c86e46b5 |
|
BLAKE2b-256 | 077681fd09570da2a57665064bfb32701d57698b3427601fbf1e373847a6adb7 |
File details
Details for the file manim_lamination_builder-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: manim_lamination_builder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e725d40dd73a681147aa2d81ec7d7f8add2781bee75c1660b5ca099619e66300 |
|
MD5 | cbb2dc1437a7e78e98853364083ce3ab |
|
BLAKE2b-256 | d664f7ee5acdc8cf7a54247c76d23c3136b369b3ba95227b8e660e19a94715d1 |