LoginSignup
0
0

More than 5 years have passed since last update.

Processing - 12 - rectと二重forを使った描画

Last updated at Posted at 2018-02-22

スクリーンショット 2018-02-20 17.38.35.png

void setup () {
  size (500, 500);
  background (255);
  noStroke ();
  noLoop ();
}

void draw () {
  for (int n = 0; n < 8; n++) {
    for (int i = 0; i < 10; i++) {
      fill(0,       0+n*20,  i*20, 125);
      rect(i*40+50, 50+n*50, 35,   35);
    }
  }
}


0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0