Thursday, 19 November 2009

Context free tree edit

Created with Context Free and edited in the Gimp

Script used to create this below.

startshape forest


rule forest {

4 * {r 90} trees {}

}


rule trees {

tree {}

trees {x+2.6 y+1 s 0.75 r 30}

}


rule tree {

branch_right{}

branch_right{rotate 180}

}


rule branch_right {

branch_right{x 0.5 y 0.5 size 0.6 r -45}

branch_left{x -0.5 y 0.5 size 0.6 r 45}

blob{}

}


rule branch_left {

branch_left{x -0.5 y 0.5 size 0.6 r 45}

branch_right{x 0.5 y 0.5 size 0.6 r -45}

blob{}

}


rule blob {

SQUARE {}

CIRCLE {size 0.99 b 1}

blob {size 0.9 b 0.25 rotate 10}

}



No comments:

Buy Fractal Stuff


See more personalized gifts from Zazzle.