The Yo Dawg Generator is a tool that creates "Yo Dawg" style pictures embedded on Yo-Yos. The pictures on the Yo-Yos are themselves "Yo Dawg Yo-Yo" pictures, etc., and the user is allowed to specify the depth. Appropriate descriptive text is also generated, and can be either clarified or obfuscated as desired.
I have successfully run the code in its current state on Ubuntu 10.04, creating the following output for the depths 0 through 65: Yo Dawgs depth 0 through 65
An example of its text output at depth 1 is: "Yo dawg, we herd you like yo-yos and yo-yo Yo Dawg Yo Dawgs so we put the yo-yo Yo Dawg yo-yo Yo Dawg in a yo-yo so you can yo-yo yo' yo-yo Yo Dawg yo-yo Yo Dawg while you yo-yo yo' Yo Dawg yo-yo Yo Dawg yo-yo Yo Dawg yo-yo dawg while yo' yo-yo Yo Dawg yo-yo Yo Dawg yo-yo dawg yo-yos, dawg."
To use, simply invoke from the command line (assuming you have Python in your path). Running without any arguments will give further instructions:
./yodawg.py
Usage: --depth X [--image] [--clarify] [--obfuscate]
The last three arguments are optional, assumed false.
image: generate image file (default returns text only)
clarify: make the text clearer by substituting words
obfuscate: capitalize all text and remove most punctuation
Example runs:
./yodawg.py --depth 0
Yo dawg, we herd you like yo-yos and Yo Dawgs so we put the yo-yo Yo Dawg in a yo-yo so you can yo-yo yo' yo-yo Yo Dawg while you yo-yo yo' Yo Dawg yo-yo Yo Dawg yo-yo dawg while yo' yo-yo Yo Dawg yo-yo dawg yo-yos, dawg.
(Generate base "Yo Dawg Yo-Yo" text)
./yodawg.py --depth 10 --image
(Generate a "Yo Dawg Yo-Yo" image to depth 10)
./yodawg.py --depth 20 --obfuscate
YO DAWG, WE HERD YO LIKE YO YOS AND YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO DAWGS SO WE PUT THE YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG IN A YO YO SO YO CAN YO YO YO YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG WHILE YO YO YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO DAWG WHILE YO YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO YO DAWG YO YO DAWG YO YOS, DAWG.
(Generate an obfuscated "Yo Dawg Yo-Yo" to depth 20)
Images are named "yodawg_depth#.png", where # is replaced by whatever depth you specified.
If you're interested in contributing, please read the todo.txt included in the base of the project repository, and feel free to submit your code by requesting a review on the Google Code site. Happy "Yo Dawg"-ing!
http://code.google.com/p/yodawg/ - Google Code source repository