curveVertex01

float radius = 200;
int centx = width/2;
int centy = height/2;

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

void draw() {
  fill(0, 0, 100);
  rect(0, 0, width, height);

  translate(200, 200);

  float x, y;
  float noiseval = random(10);
  float radVariance, thisRadius, rad;

  beginShape();
  fill(70, 90, 100, 50);

  for (float ang = 0; ang <= 360; ang += 1) {

    noiseval += 0.1;
    radVariance = 30*customNoise(noiseval);

    thisRadius = radius + radVariance;
    rad = radians(ang);
    x = centx + (thisRadius * cos(rad));
    y = centy + (thisRadius * sin(rad));

    curveVertex(x, y);
  }
  endShape();
}

float customNoise(float value) {
  float retValue = pow(sin(value), 3);
  return retValue;
}

教科書の『ジェネラティブ・アート』を写経後,void draw で書き直す回.beginshape endShape curveVertex を学んだ.次は,線にして,螺旋というか,たくさん細い線でこのぐにゃぐにゃを描きたい.