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.pyUsage: --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 wordsobfuscate: capitalize all text and remove most punctuationExample runs: ./yodawg.py --depth 0Yo 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../yodawg.py --depth 10 --image./yodawg.py --depth 20 --obfuscateImages 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 |
