The Malleable Glyph package
Project description
Malleable Glyph is a small graphical design, fitting exactly to a square of 1in × 1in. It is "shaped" by a numerical parameter $x$ ranging from $0.0$ to $100.0$.
This is the mglyph library that offers an easy way how to design and preview malleable glyphs:
def simple_line(x: float, canvas:mg.Canvas) -> None:
canvas.line((mg.lerp(x, 0, -1), 0), (mg.lerp(x, 0, 1), 0),
width='50p', color='navy', linecap='round')
mg.show(simple_line)
To start with mglyph
- check out the tutorial (just download the Jupyter Notebook and run it, or explore the same one in Google Colab)
- see the library homepage at GitHub
- read the paper
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mglyph-0.5.5.tar.gz
(20.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mglyph-0.5.5-py3-none-any.whl
(20.4 kB
view details)
File details
Details for the file mglyph-0.5.5.tar.gz.
File metadata
- Download URL: mglyph-0.5.5.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ab294f7e27294d9209164f957c493617af3903faa677642e4916fa5f9f7e498
|
|
| MD5 |
100869f349aba0bc958a97058474d790
|
|
| BLAKE2b-256 |
3b930410115eeb23bfdc9f50e9d909ddf384397a182cfb815c3a32209e76dcf9
|
File details
Details for the file mglyph-0.5.5-py3-none-any.whl.
File metadata
- Download URL: mglyph-0.5.5-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b382f84aaf2a58a60f66f438dc9589eaea009f9fcc931b1b16035290cf6ff65d
|
|
| MD5 |
b7d70c816ac09f880167a34f8ade96f6
|
|
| BLAKE2b-256 |
0c059a3e49bbd9c99afda2b0b94d2e0f1dc883c0a29ffb8196a0a10e7a0661f2
|