LoginSignup
0
0

More than 5 years have passed since last update.

Processing - 13 - forとlineを使った描画

Posted at

スクリーンショット 2018-02-23 00.19.40.png

void setup() {
  size(500, 500);
  background(0);
  stroke(255, 60);
  noLoop();
}

void draw() {
  for (int i = 0; i < 100; i++) {
    float random = random(30);
    strokeWeight(random);
    float offset = random * 20.0;
    line(i-20, height, i+offset, 0);
  }
}

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