ramdom_rotate_lines02

void setup() {
  size(500, 500);
  colorMode(HSB, 360, 100, 100, 100);
  background(0, 0, 100);
  strokeWeight(1);
  smooth();
  frameRate(5);
}


void draw() {
  int xstep = 1;
  int ystep = 50;
  float lastx = -999;
  float lasty = -999;
  float ynoise = random(10);
  float ny;

  background(0, 0, 100, 2);
  translate(0, -30);
  stroke(360%frameCount, 80, 90);

  for (int y = 0; y<= height/2; y += xstep) {
    for (int x= 0; x<= width/2; x += ystep   ) {
      ny = y + noise(ynoise) * 80;
      if (lastx > -999) {
        translate(400, 400);
        rotate(frameCount);
        line(x, ny, lastx, lasty);
      }
      lastx = x;
      lasty = ny;
      ynoise += 0.1;
    }
  }
}

昨日書いたものをほんの少し変えたのみ.今日はテキストの締切で,Processingに集中できなかった.明日また,がんばる.明日,Processingをがんばるためには,今日,テキストを仕上げる.きつい.