January 30, 2009

Fractal Flare

yine bir gün ContextFree ile oynarken




Fractal contextfree code : 

startshape flare
background {b -1}
rule flare{16*{a -0.2}anaYuvarlak{b 1}}

rule anaYuvarlak {kuyruk[] kuyruk[s 0.5 x 2.5] anaYuvarlak[x 2.5] }
rule anaYuvarlak {anaYuvarlak[skew 0 5]}
rule anaYuvarlak {anaYuvarlak[skew 0 -5]}
rule anaYuvarlak {anaYuvarlak[s 0.8]}
rule anaYuvarlak {anaYuvarlak[h 60 sat 20]}

rule kuyruk {kuyruk3{a -100 b -100 } kuyruk2{}}
rule kuyruk3 {CIRCLE[a 0.008 b 0.8 s 10]}


rule kuyruk2 { CIRCLE{b -1 h 50 sat 5}}
rule kuyruk2 { kuyruk2{b 1 h -10 sat 2} kuyruk2{r 45 b -1 s 0.8}}

 
Post a Comment