dst212 / kekmicals

Script to create stickers with chemical elements' symbols.

Home Page:https://kekmicals.t.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kekmicals

This script creates simple stickers (smaller or equal to 512x512 pixels for Telegram) composed with chemical elements' symbols.

Here are some example packs, with mostly Italian words.

Example:

# Create an image displaying Borum, Ruthenium and Hydrogen symbols
./kekmicals.py --style border BRuH

Output:

You can also use multiple words. The script will break them:

./kekmicals.py BeH CHe DyRe 

Output:

You can cache all of the 119 elements with --create:

./kekmicals.py --create # Default borderless theme
./kekmicals.py --create border
./kekmicals.py --create swap

This will create elements' symbols' images inside cache/.

You may want to test if you are able to compose a sentence without creating an output image. You can use --test:

./kekmicals.py --test KeK # This will raise an error, because "Ke" is not a valid element

Credits

Thanks to Bowserinator for PeriodicTableJSON.json.

This script uses Pillow.

About

Script to create stickers with chemical elements' symbols.

https://kekmicals.t.me


Languages

Language:Python 100.0%