Skip to content

Algorithm that transforms text into cryptic art. Equilateral triangles on a digital canvas creating logograms, guided by letter/character-based rules. Encode a piece of text into a visual puzzle blending art and cryptography.

License

Notifications You must be signed in to change notification settings

strumberr/tetralogue-logogram

Repository files navigation

Tetralogue Logogram Generator

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.

Example

Input (String): "crypt"

alt text 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

Usage

  1. Installation: Ensure Python is installed on your system.

  2. Clone the Repository:

    git clone https://github.com/strumberr/tetralogue-logogram.git
    cd tetralogue-logogram
  3. Run the Script:

    python logogram_generation_command.py "Your message"

    Replace "Your message" with the text you want to transform into a logogram.

  4. Output: The script generates and immediately displays the logogram, and saves it as an image file in the same directory.

How It Works

The logogram generation process involves these key steps:

  1. Parameter Configuration: Set canvas size, background color (typically white), triangle size, and total triangle count.

  2. Triangle Grid Formation: Place equilateral triangles to create a centered grid for visual balance.

  3. Mapping Characters to Triangles: Each character maps to geometric attributes, determining position in the alphabet, color (black or white), and group (1 to 13).

  4. 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.

  5. Expanding Sections: Thirteen sections radiate outward from the canvas center, evolving as characters are processed.

License

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

About

Algorithm that transforms text into cryptic art. Equilateral triangles on a digital canvas creating logograms, guided by letter/character-based rules. Encode a piece of text into a visual puzzle blending art and cryptography.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages