Transform Text into Cryptic Logograms with Python
The Logogram Generator is a Python tool for creating intriguing logograms. It arranges small equilateral triangles on a digital canvas to produce a visual code that conceals the original text within an artistic geometric tapestry.
Input (String): "crypt"
Logogram: logogram.png
Untitled.mov
I am aware that the logogram is called "Tetra"-logue, which is a combining form meaning “four". But thats part of the joke.
This is also my first time making anything related to cryptography or logograms, so it might not be incredibly advanced
-
Installation: Ensure Python is installed on your system.
-
Clone the Repository:
git clone https://github.com/strumberr/tetralogue-logogram.git cd tetralogue-logogram
-
Run the Script:
python logogram_generation_command.py "Your message"
Replace
"Your message"
with the text you want to transform into a logogram. -
Output: The script generates and immediately displays the logogram, and saves it as an image file in the same directory.
The logogram generation process involves these key steps:
-
Parameter Configuration: Set canvas size, background color (typically white), triangle size, and total triangle count.
-
Triangle Grid Formation: Place equilateral triangles to create a centered grid for visual balance.
-
Mapping Characters to Triangles: Each character maps to geometric attributes, determining position in the alphabet, color (black or white), and group (1 to 13).
-
Dynamic Triangle Generation: The script adapts the number of triangles to the input message's length. This process visually encodes the original text through an expanding pattern of triangles.
-
Expanding Sections: Thirteen sections radiate outward from the canvas center, evolving as characters are processed.
This project is under the MIT License - see the LICENSE file for details.
The Logogram Generator blends artistry and cryptography to create compelling visual representations of text. Experiment and share your logograms with the world! For questions or issues