Processingで作る色相環(投稿テスト)

8月 6th, 2011

色相環

Processingで作る色相環

  colorMode(HSB, 360);
  noStroke();
  for(int i = 0; i < 360; i += 30){
    float x = cos(radians(i)) * 35 + width / 2;
    float y = sin(radians(i)) * 35 + height / 2;
    fill(i, 360, 360);
    ellipse(x, y, 15, 15);
  }

Tags: , ,
Posted in 未分類 | No Comments »

Comments

Leave a Reply

 Comment Form