Context Free Art
Context Free is a program that generates images from written instructions called a grammar. The program follows the instructions in a few seconds to create images that can contain millions of shapes.
via: Context Free Art
面白そうなので弄ってみた.
先人のすばらしい作品には遠く及ばないけど,
30分ぐらいで花火っぽいコードが書けたから,まぁ良し.

Context Free Art -hanabi-
startshape hanabi
background { b -1 }
rule hanabi {
curve {}
180 * { r 2 } hoge{ }
}
rule curve {
CIRCLE { sat 1 b 1}
curve { y -1 r -0.5 s 0.95 hue 10 a -0.09}
}
rule hoge {
CIRCLE { sat 1 b 1 }
hoge { y 1.2 s 0.85 hue -20 a -0.15}
}
rule hoge {
CIRCLE {sat 1 b 1 }
hoge {y 1.4 s 0.9 hue -25 a -0.15}
}
rule hoge {
CIRCLE { sat 1 b 1 }
hoge { y 1.6 s 0.95 hue -30 a -0.15}
}
ライブラリ化されてるし,これでセンサ入力の可視化とかしたら面白そうだな.
