a-na5:

nocookieforu さんへ

//.pde [Processing](https://processing.org/)
//Contribution by A-na5.tumblr

float theta = 0;
float thetastep = 0.2;

int r = 200;
int n = 100;
float px, py, py_;

void setup() {
  size(500, 500);
  frameRate(17);
  noStroke();
  fill(255);
}
void draw() {
  background(0);
  go_st(3, 6, theta);
  theta += thetastep;
}

void go_st(int c, int m, float t) {
  float ts = TWO_PI/n;

  float p_c = 300/n;
  float p_s;

  for (int y = 0; y < n; y++) {
    for (int x = 0; x < n; x++) {
      px = ( cos(ts*y+py_)*(3+cos(ts*x)) )/4 *0.5;
      py = ( pow(sin(ts*y*c+t)+sin(ts*x), 3)+sin(ts*y+t) )/9 *0.5;
      py_ = py*m;

      fill(y*p_c, x*p_c, 255);
      p_s = map(x, 0,n, 1,12);

      ellipse(px*r+width/2, py*r*2+height/2, p_s,p_s);
    }
  }
}

a-na5:

nocookieforu さんへ


//.pde [Processing](https://processing.org/)
//Contribution by A-na5.tumblr

float theta = 0;
float thetastep = 0.2;

int r = 200;
int n = 100;
float px, py, py_;

void setup() {
  size(500, 500);
  frameRate(17);
  noStroke();
  fill(255);
}
void draw() {
  background(0);
  go_st(3, 6, theta);
  theta += thetastep;
}

void go_st(int c, int m, float t) {
  float ts = TWO_PI/n;

  float p_c = 300/n;
  float p_s;

  for (int y = 0; y < n; y++) {
    for (int x = 0; x < n; x++) {
      px = ( cos(ts*y+py_)*(3+cos(ts*x)) )/4 *0.5;
      py = ( pow(sin(ts*y*c+t)+sin(ts*x), 3)+sin(ts*y+t) )/9 *0.5;
      py_ = py*m;

      fill(y*p_c, x*p_c, 255);
      p_s = map(x, 0,n, 1,12);

      ellipse(px*r+width/2, py*r*2+height/2, p_s,p_s);
    }
  }
}