Chris Coyne . com: Home / CFDG

Ok Cupid - Free Online Dating

[Intro] [Example 1] [Example 2] [Example 3] [Example 4] [New! Example 5] [ New! DOWNNLOAD AND PLAY! ] [User Gallery]

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:
  1. a startshape; this is just the name of an object you make up
  2. rules for growth; you can replace any object with any other objects, at relative positions, orientations, colors, brightnesses, and sizes.
  3. 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




Just another Chris Coyne out of thousands of us Chris Coynes on the Internet. Chris Coyne am I. Chris Coyne.
E-mail:
pageviews since 5/14/2004. [Home]