|
Image converter for Context Free

Context Free is a kickass free renderer for making fractals and abstract art using context free grammars. With this program the grammars are written in the form of rules for drawing shapes on a canvas and recursively calling other rules according to probability. Nice intersection of mathmatics and art.
My script converts images into rules for use with Context Free. Shown here is a licence plate I photographed with an unsecured Panasonic webcam in New Jersey. Seemed to be a car park security camera. Someone was obviously concerned about me zooming it in on the licence plates (technique for estimating camera's location) and switched the camera off.
If you drive a black BMW with NJ plate SMV-21N, rest assured that your carpark security guy is diligently watching his camera, especially when random folks from the other side of the world are using it to look around.
The spiral's a simple, elegant shape to start off with:
startshape plateSpiral
/* define a rule */
rule plateSpiral {
/* draw the licence plate */
bmpImg {}
/* rotate 10 degrees, y -10, */
/* size 98%, repeat */
plateSpiral {s 0.98, y 10, r 10}
}
rule bmpImg {
...
}
So have a play, I'm sure you can do better than mine, and I'd love to see what you make :-)
Image Converter for Context Free
Download the Program
Gallery of Context Free Art
Created 2006-07-22 14:47:38 by 183 and filed under hacking
Add Comment
Subscribe to this blog by RSS.
|
|
|
|