DEV Community

Masato Ohba
Masato Ohba

Posted on

5 2

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (1)

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

Wow, that looks neat!

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay