Context Free Design Grammar
CFDG is a very simple language I made for generating pictures. You write a text file as an input (a .cfdg file), and it spits out a beautiful graphic up to 1000 megapixels (a gigapixel!).
Your text file consists of 3 things:
- a startshape; this is just the name of an object you make up
- rules for growth; you can replace any object with any other objects, at relative positions, orientations, colors, brightnesses, and sizes.
- circles and squares; they are special objects and they are drawn rather than replaced.
You can have conflicting rules. When this happens, CFDG picks one randomly. You can also specify weightings for which rules you'd like to have chosen more often.
And finally, infinite loops are okay, as long as the shapes get infinitely small.
TO DOWNLOAD (Mac, Windows, UNIX) check out the newest releases at OzoneHouse.
They made the Windows and Mac versions and have the newest release of the UNIX versions as well.
CFDG is totally open source and free.
What follows are some .cfdg files and the images they generated.
First example: tree_forest.cfdg
|

Oozescape, by momo
|