記録

勉強したことに関するのノート。見返して分かるようにしてます。

フレームレート(?)

void setup() {
  size(500, 500);
  colorMode(HSB, 360, 100, 100);
  background(0, 0, 100);
  frameRate(30);
}

void draw() {
  for (int b=1; b<500; b=b+1) {
    fill(0, 100, 100);
    ellipse(b, b, 100, 100);
  }
}

残念ながらframeRateを生かすものではないのですがかっこいい書道っぽい感じのができたのでこれで。またやり直そう

int r=50;

void setup() {
  size(500, 500);
  colorMode(HSB, 360, 100, 100);
  background(0, 0, 0);
  frameRate(5);
  fill(0, 0, 0);
  noStroke();
}

void draw() {
  if (mousePressed) {
    fill(random(1, 360), random(1, 100), random(1, 100));
  }
  ellipse(mouseX, mouseY, r, r);
}

mousePressed - 記録で使ったものを転用した。ぽつぽつ出てくる。

今日の勉強【Processing入門♯13】
frameRate();
デフォルトは30