#Context-Free
6 posts tagged “Context-Free”
6 posts tagged “Context-Free”
Alastair’s Fractals Main Page,
My Shop at CafePress, My Shop at Zazzle Sign My Guestbook
© Alastair Montgomery 2008
Initial Design
Created with this scriptstartshape 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
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
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
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
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 }
}
More context free art

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
Created with Context Free and edited in the Gimp
Script used to create this below.
startshape forest
rule forest {
4 * {r 90} trees {}
}

Context Free Fractal Tree created with the Context Free software


Alastair’s Fractals Main Page,
My Shop at CafePress, My Shop at Zazzle Sign My Guestbook
© Alastair Montgomery 2008