No project description provided
Project description
Built-for-purpose, minimal 2D graphics library.
Working on documentation, but the file examples/jamboree.py is pretty comprehensive.
To pre-create the glyphs and atlas, there's a command line tool, e.g.:
python -m mglg.util.prebake_font examples\UbuntuMono-B.ttf fonts\
Which saves a pickled file (in this case, fonts\UbuntuMono-B.pklfont
) that includes the atlas, glyphs, and other info to avoid touching the font file. Add --view
to see the atlas.
freetype-py
is required to generate pickled fonts or do on-the-fly font loading, and can be installed either via pip install freetype-py
or pip install mglg[freetype]
.
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
mglg-0.2.18.zip
(458.8 kB
view hashes)
Built Distributions
mglg-0.2.18-cp38-cp38-win_amd64.whl
(328.8 kB
view hashes)
mglg-0.2.18-cp37-cp37m-win_amd64.whl
(324.0 kB
view hashes)
mglg-0.2.18-cp36-cp36m-win_amd64.whl
(317.0 kB
view hashes)
Close
Hashes for mglg-0.2.18-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf734dc5a2636c8e83b7810cad74c41443def695810a20b868904d0b8a05b379 |
|
MD5 | 748502b9b079b4c3dce4a873ecd12fad |
|
BLAKE2b-256 | d436cf5623b32546354dcefa4d099bb9df9aca837416fff92f5da1836801b7b2 |
Close
Hashes for mglg-0.2.18-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d823d21bb6f0f1a80f2a3da5a9eb4e7c37eb58ee0f89065e083b4211600a26b |
|
MD5 | 9ce64eb0786dd31a77e0a95e31039e89 |
|
BLAKE2b-256 | f8eca830a65e61eff4a123430433100d2ec7447d760e48ab58335aa2b2a7b9ae |
Close
Hashes for mglg-0.2.18-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be3b07aa9f90e75e879211d5c467b362eb94023f3d5448d8f3f5efd9c7adc775 |
|
MD5 | f52076b59d82dd2a7ec17698121eea2f |
|
BLAKE2b-256 | f547b5a082fe170d1605898caf8234cb9bcecf1a6dd782c47a9287f77c721bdf |
Close
Hashes for mglg-0.2.18-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68703529b50a31e2a6b8eabd3eba0f66ee4e3278a83f998da30542a67acdd91a |
|
MD5 | 82403dcf308e71b05855bc9abd705ce9 |
|
BLAKE2b-256 | 5391e447f47e586ef64e30fa89502c8d20ce8e9161e3b9af61d4f4af3b70d4be |
Close
Hashes for mglg-0.2.18-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c4712abaa7b83c08d140c4f5266c8a172ddc6ff4eaddc0d9daaf02006d46b7b |
|
MD5 | 6e909bd72356b974deea8c5e82d46c1d |
|
BLAKE2b-256 | 564deb8c9ed1a93dd4f8f54cbf4a7436852d928962fa28fba778fd32cb7b05dd |
Close
Hashes for mglg-0.2.18-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21d0014030bc92b7b95d9969c82bb9156ef6ed5fb86bc6fe1a4b0b9502e7ae46 |
|
MD5 | 08aac39f807f783998806d21383392d7 |
|
BLAKE2b-256 | c69f95cb86880409d4bce8964314e712b910dbfb3943027fcbfc81705c93b971 |
Close
Hashes for mglg-0.2.18-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af7a7450f534ce732984a171b22e3262ffeaf10bb4eb888ed08310640b8e5890 |
|
MD5 | 3c6ee15bfad649129320e64939b1fac1 |
|
BLAKE2b-256 | 8c876a7f9a9938c611fdb07a72bafac2a835fd1e12f4475c3cab6776c6d5977f |
Close
Hashes for mglg-0.2.18-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d5f68f766ffcdf92e52030811ab8289434367ecf1613980e9acf049bd5faa73 |
|
MD5 | c62daa789c400126df369a5e90418e62 |
|
BLAKE2b-256 | 908d24c8780d68fcb40afb12482875a86818dcd1aadfcfae6310180f6e3ce108 |
Close
Hashes for mglg-0.2.18-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 461834efa1278feed4c9a0b837c637cc843ba8a3811ffd1d65a602bd22e0e102 |
|
MD5 | 4bdf166b92b78c02841c6ab9c6d0e853 |
|
BLAKE2b-256 | 7817c1fd70d74eb01df168b1832150fd2693e0f64f5076a79b40d01de0fbc0ef |
Close
Hashes for mglg-0.2.18-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60969411b18cb574275c5c82911cc31e4c7205ebaa4c7c180531115d5742b3cc |
|
MD5 | bb9a5e547f8377d8085973491db9ba58 |
|
BLAKE2b-256 | 858e092520259a0518c3bc790d30d00000e45368d56ff47bcc625cad6f36e5a0 |
Close
Hashes for mglg-0.2.18-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1d55c4382bdc3329466149b67b7b80c94708aa58cde96dc88390383d0845d0c |
|
MD5 | 72215b2225ab324db80b4c29678a306d |
|
BLAKE2b-256 | 0cd9ee84ddefe0d4be99bba34100e6de719edc6241f069424d6551a58eed6b34 |
Close
Hashes for mglg-0.2.18-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40e983e785973ead3831f62c03056766ff3b871a8c6e78ac4531688cf5bdee02 |
|
MD5 | e7cbff4cdcc2b363b133468f12c36f6f |
|
BLAKE2b-256 | 2845442788d6ddcd8d13f96291cf7cd424b426d8ced310f73301f5ead9b15e5a |