Skip to content

Script to create stickers with chemical elements' symbols.

Notifications You must be signed in to change notification settings

dst212/kekmicals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages