Here is yet another simple creation that randomly places squares and circles on the canvas. The interesting aspect of the language is that different pictures get created without a change in code! Thus, a slight variation of the image is shown below.
Friday, January 30, 2009
Thursday, January 29, 2009
Spiral
Triangle Set
A simple set of Triangles juxtapositioned next to one another with a reduction in size. The code that generates this figure is shown below:
startshape B
rule A{
TRIANGLE{b 0.2}
TRIANGLE{s 0.95 b 1}
A{s 0.9}
}
rule B{
A{}
A{x 0.5 y 0.3 flip 180}
A{x 1}
A{x 0.5 y 0.88}
}
Now adding a few color elements to the code gets us this.
Subscribe to:
Posts (Atom)