DEV Community

Masato Ohba
Masato Ohba

Posted on

Learning Generative Art; day 2 "Feather" 🐦

Continuation of My first step in learning Generative Art.

"Feather"

I drew an image expressing a feather; it is a beautiful thing that no creature on the earth has.

image

image

function setup() {
  createCanvas(600, 400);
  background(224)
  noStroke();
  for (var i = 0; i < 300; i++) {
    var r = random(0,200);
    fill(color(random(i),random(i),random(i), 77)); 
    bezier(random(300, 580), random(300, 350), 400, 400, 44, 0, r, r);
    bezier(600, 600, random(r), random(350), 400, 400);
  }
}

function draw() {
}

Enter fullscreen mode Exit fullscreen mode

TIL 📝

Randomized numbers accelerate fun of creating generative art because the same code results every differnt image.

Discussion (1)

Collapse
_bigblind profile image
Frederik 👨‍💻➡️🌐 Creemers

Wow, that looks neat!