Another bit of fun with Context Free. Sourcecode for this one is below the break.
startshape Shards
//variation HPZ is quite nice
background { b -1 }
rule Shards {
Bar { }
Bar { r 90 s -1 1 }
}
rule Bar {
Fragment { }
Bar { y 1 s .9 1 }
}
rule Bar {
Fragment { }
Bar { x .2 y .4 r 0 s .6 .8 }
}
rule Bar .2 {
Bar { r 15 }
Bar { r 30 }
}
rule Bar .3 {
Shards { }
}
rule Fragment {
Hex { skew 60 -30 hue 230 sat .25 b 1 alpha -.99}
Hex {x .1 y -.0375 skew 60 -30 hue 200 sat .125 b 1 alpha -.95}
}
rule Fragment {
Hex {x .1 y .0375 skew 60 -30 hue 225 sat .25 b 1 alpha -.97}
Hex {x .225 y 0 skew 60 -30 hue 190 sat .125 b 1 alpha -.96}
}
rule Hex {
6 * { r 60 } {
TRIANGLE { x .5 y (sqrt(3)/6) }
}
}