2011-06-23

✏ Fractal Glider (Game of Life)

Structure Synth, два вечори :)

set background white
set raytracer::shadows true
set raytracer::samples 10
set raytracer::ambient-occlusion-samples 6
set raytracer::dof [0.23,0.2]

#define zm 1.1
#define sm 1/3

rule brick maxdepth 1 { box }

rule glider maxdepth 1 {
 { x 0 } brick
 { x 1 } brick
 { x 2 } brick
 { y -1 x 2 } brick
 { y -2 x 1 } brick
}

rule macroglider maxdepth 6 {
 glider
 { color random s sm z zm y 1 x -1 } macroglider
 { color random s sm z zm y 1 x 2 } macroglider
 { color random s sm z zm y 1 x 5 } macroglider
 { color random s sm z zm y -2 x 5 } macroglider
 { color random s sm z zm y -5 x 2 } macroglider
}

{ color random } macroglider

Немає коментарів:

Дописати коментар