DEV Community

Masato Ohba
Masato Ohba

Posted on

Learning Generative Art; day 2 "Feather" 🐦

Continuation of My first step in learning Generative Art.


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



function setup() {
  createCanvas(600, 400);
  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.

Top comments (1)

_bigblind profile image
Frederik πŸ‘¨β€πŸ’»βž‘οΈπŸŒ Creemers

Wow, that looks neat!