LoginSignup
0
0

More than 5 years have passed since last update.

Processing - 10 - lineとforを使った描画(>>>の連続)

Posted at

スクリーンショット 2018-02-06 18.37.38.png

void setup () {
  size (600, 400);
  smooth ();
  background (255);
  strokeWeight (25);
  noLoop ();
}

void draw () {
  for (int i = 1; i < 9; i = i + 1) {
    stroke (20*i, 155, 155);
    line(i*50, 100, 150 + (i-1)*50, 200);
    line(i*50 + 100, 200, 50 + (i-1)*50, 300);
  }
}
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