Showing posts with label context free. Show all posts
Showing posts with label context free. Show all posts

Thursday, 11 November 2010

Spiral Animation

Fractal Spiral from Alastair Montgomery on Vimeo.



Animation of a Context Free Fractal being generated.

Alastair's Fractals Main Page My Shop at CafePress My Shop at Zazzle

In association with Zazzle.com

© Alastair Montgomery 2010

Thursday, 3 December 2009

Crystal 5

Crystal 5
Created with Context Free

Alastair's Fractals Main Page,
My Shop at CafePress, My Shop at Zazzle Sign My Guestbook
In association with Zazzle.com

© Alastair Montgomery 2008

Tuesday, 24 November 2009

From Crystals to Spirals

Initial Design
Crystal 1
Created with this script
startshape crystals

rule crystals {
crystal { h 81.87 sat 0.8642 b 1.0000 }
crystal { h 81.87 sat 0.8642 b 1.0000 r 90}
crystal { h 81.87 sat 0.8642 b 1.0000 r 180}
crystal { h 81.87 sat 0.8642 b 1.0000 r 270}
}

rule crystal {
blob {}
crystal {s 0.5 y 0.75}
crystal {s 0.5 x 0.75}
}

rule blob {
SQUARE {}
blob {s 0.9 b - 0.1 r 5}
}


Add an extra layer of recursion
Crystal 2
startshape gem

rule gem{
crystals {}
gem { s 0.8 r 10 }
}

rule crystals {
crystal { h 81.87 sat 0.8642 b 1.0000 }
crystal { h 81.87 sat 0.8642 b 1.0000 r 90}
crystal { h 81.87 sat 0.8642 b 1.0000 r 180}
crystal { h 81.87 sat 0.8642 b 1.0000 r 270}
}

rule crystal {
blob {}
crystal {s 0.5 y 0.75}
crystal {s 0.5 x 0.75}
}

rule blob {
SQUARE {}
blob {s 0.9 b - 0.1 r 5}
}


Or with this change create a spiral effect
Crystal 3
startshape gems

rule gems{
8 * {r 45} gem {}
}

rule gem{
crystals {}
gem { s 0.8 r 10 x 2.5}
}

rule crystals {
crystal { h 81.87 sat 0.8642 b 1.0000 }
crystal { h 81.87 sat 0.8642 b 1.0000 r 90}
crystal { h 81.87 sat 0.8642 b 1.0000 r 180}
crystal { h 81.87 sat 0.8642 b 1.0000 r 270}
}

rule crystal {
blob {}
crystal {s 0.5 y 0.75}
crystal {s 0.5 x 0.75}
}

rule blob {
SQUARE {}
blob {s 0.9 b - 0.1 r 5}
}


Finally add some colour and change the angle
Crystal 4
startshape gems

rule gems{
8 * {r 45} gem {h 81.87 sat 0.8642 b 1.0000}
}

rule gem{
crystals {}
gem { s 0.8 r 25 x 2.5 h +25}
}

rule crystals {
crystal { }
crystal { r 90}
crystal { r 180}
crystal { r 270}
}

rule crystal {
blob {}
crystal {s 0.5 y 0.75}
crystal {s 0.5 x 0.75}
}

rule blob {
SQUARE {}
blob {s 0.9 b - 0.1 r 5}
}


Alastair's Fractals Main Page,
My Shop at CafePress, My Shop at Zazzle Sign My Guestbook
In association with Zazzle.com

© Alastair Montgomery 2008

Friday, 20 November 2009

Fractal tree with spikes

Fractal tree created in Context Free using the script below.




startshape trees

rule trees {
tree {hue =1 sat =0.8016 b =0.9502}
}

rule tree {
spike {}
tree {y 2 s 0.7 r 30 hue +5}
tree {y 2 s 0.7 r -30 hue +5}
}

rule spike {
point {}
}

rule point {
CIRCLE {}
point { y 0.1 s 0.96 sat -0.005 }
}

Context Free Spikes

More context free art

Spikes 4
Spikes 4 version 2

Here is the script, just change the "r -40" to "r 40" to generate the other image.


startshape spin2

rule spin2 {
spin {}
spin2 { r -40 x 1.5 y 1 s 0.9}
}

rule spin {
spikes {}
}

rule spikes { spike {hue =1 sat =0.8016 b =0.9502} }

rule spike { point { } spike { r 10 s 0.95 hue +1 } }

rule point { CIRCLE{} point { y 0.1 s 0.96 sat -0.005 }}



Alastair's Fractals Main Page,
My Shop at CafePress, My Shop at Zazzle Sign My Guestbook
In association with Zazzle.com

© Alastair Montgomery 2008

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}

}



Context Free Fractal Trees

Context Free Tree

Context Free Fractal Tree created with the Context Free software

Fractal Tree

Grey Tree

Tree Curl

Alastair's Fractals Main Page,
My Shop at CafePress, My Shop at Zazzle Sign My Guestbook
In association with Zazzle.com

© Alastair Montgomery 2008

Buy Fractal Stuff


See more personalized gifts from Zazzle.