Skip to content

7aimez/turtle_string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turtle String

Converts a string into a turtle drawing




About

This python script splits up the text, uses the letter functions to draw the letter using t.goto(x, y), reletive to the bottom left corner of the letter, e.g. t.goto(x+10, y+20).

Features

  • All letters (a-z)
  • Special characters (., ,, !, ?, ')
  • Background colour
  • Letter spacing
  • Line spacing
  • Text line width ('boldness')

Requirements

  • Python 2.5 or later
  • Turtle libs

Get Started

Follow these steps to use Turtle String:

Manually

  1. Clone the repo

    git clone https://github.com/7aimez/turtle_string.git
  2. Move into the source folder

    cd turtle_string/src
  3. Edit the setup dictionary just inside the main() function to your preferences

  4. Run the program in python

    python main.py
  5. Done! Watch your text appear on the screen

Automatically

Run auto.sh (for raw, use github.com/7aimez/turtle_string/raw/refs/heads/main/install/auto.sh), to automatically install Turtle String. Then, edit the setup dictionary just inside the main() function to your preferences. Finally, run the program in python:

python main.py

Demo

Demo of Turtle String in action

Demo of Turtle String in action

Contents

  • src - Contains source files and python code
  • install - Install Turtle String
  • key - Contains the key for lettering and the text arguments
  • src/examples - Contains example of the code being used

License

Turtle String is under the MIT Licesnse. Read LICENSE to find out more.