lunes, 16 de febrero de 2009

Ejemplos de Figuras en Structure Synth

Aqui dejo un par de Ejemplo de Codigo EisenScript en Structure Synth y su salida por pantalla.
EisenScript asi se llama el codigo que es utilizado por Structure Synth para crear los objetos.

set maxdepth 8

R1

rule R1 {

{ rx 0 } R2

{ x 1.5 y 1.5 z 1.5 s 0.5 } R1

{ x 1.5 y 1.5 z -0.5 s 0.5} R1

{ x -0.5 y 1.5 z 1.5 s 0.5} R1

{ x -0.5 y 1.5 z -0.5 s 0.5} R1

}

rule R2 {

{ x 0 y 1 z 0 s 0.25 2.25 0.25 } box // top

{ x 0 y 0 z 1 s 0.25 0.25 2.25 } box // top

{ x 0 y 1 z 2 s 0.25 2.25 0.25 } box // top

{ x 0 y 2 z 1 s 0.25 0.25 2.25 } box // top

{ x 1 y 0 z 0 s 2.25 0.25 0.25 } box //vertical

{ x 1 y 2 z 0 s 2.25 0.25 0.25 } box //vertical

{ x 1 y 2 z 2 s 2.25 0.25 0.25 } box //vertical

{ x 1 y 0 z 2 s 2.25 0.25 0.25 } box //vertical

{ x 2 y 1 z 0 s 0.25 2.25 0.25 } box // bottom

{ x 2 y 0 z 1 s 0.25 0.25 2.25 } box // bottom

{ x 2 y 1 z 2 s 0.25 2.25 0.25 } box // bottom

{ x 2 y 2 z 1 s 0.25 0.25 2.25 } box // bottom

}


set maxdepth 100

r1
36 * { x -2 ry 25 } r1
rule r1 maxdepth 10 {
2 * { y -1 } 3 * { rz 15 x 1 b 0.9 h -20 } r2
{ y 1 h 12 a 0.9 rx 36 } r1
}
rule r2 {
{ s 0.9 0.1 1.1 hue 10 } box // a comment
}
rule r2 w 2 {
{ hue 113 sat 10 a 23 s 0.1 0.9 1.1 } box
}


set maxdepth 15

branch

rule branch {
{ y 1 x -0.5 s 0.707 rz 45 ry -90 } branch
{ y 1 x 0.5 s 0.707 rz -45 ry -90 } branch
box
}


No hay comentarios:

Publicar un comentario