HOME | DD

#procedural #grammar #structuresynth
Published: 2016-02-14 19:23:23 +0000 UTC; Views: 1102; Favourites: 15; Downloads: 8
Redirect to original
Description
Structure synth and triangles - just playing around with them.Code:
set colorpool image:colorset3.png
4 * {rz 90 x -13} 6 * { z 2} 6 * {x 2} tri3
1 * { rx -90 z -13} 6 * { z 2} 6 * {x 2} tri3
1 * { z 13 rx 90 } 6 * { z 2} 6 * {x 2} tri3
rule tri3{
1 * { y 0.1 s 1 1.2 1} 4 * {ry 90 x 1} 1 * {fx x 1 color random }tri2
}
rule tri3{
1 * {y -1 s 1 -1 1} 4 * {ry 90 x 1} 1 * {fx x 1 color random }tri2
}
rule tri3{
1 * { y -0.1 s 1 0.8 1} 4 * {ry 90 x 1} 1 * {fx x 1 color random }tri2
}
rule tri3{
1 * { y -0.2 s 1 0.6 1} 4 * {ry 90 x 1} 1 * {fx x 1 color random }tri2
}
rule tri2{
{s 1 } triangle[-1,0,1;0,1,0;1,0,1]
}
That's all
The fx is in there to turn the triangles so that they are visible in the preview as well. Could have probably created the triangle the other way round but hey.