2008年11月30日日曜日

Processing Programing 現在学習中

作ってみました。
size(200,200); colorMode(HSB, 120);
background(120);
smooth();
rectMode(CENTER);
noStroke();
int angle = 30; int margin = 40;
translate(120, 30);
for(int i = 0; i < 12; i++){
  fill(i * 10, 100, 120, 60);
  rect(0, 0, 30, 30);
  rotate(radians(angle));
  translate(margin, 0);
}
save("test.png");