Friday, July 10, 2009

Structure Synthで市松模様の台座を描画する

Structure Synthで市松模様の台座を描画するには、以下のスクリプトを実行します。

// 市松模様のルールを5*5回繰り返し
5 * { z 2 } 5 * { x 2 } checker
// 市松模様のルール
rule checker {
{ color white } box
{ x 1 color black } box
{ z 1 color black } box
{ x 1 z 1 color white } box
}
// 水色の地面
{ y -1 s 200 0.1 200 color #bbddff } box

Structure Synthで出力した画像


Sunflowで出力した画像

No comments: