DEV Community

Cover image for What I felt through 7 Days of Learning Generative Art
Masato Ohba
Masato Ohba

Posted on

What I felt through 7 Days of Learning Generative Art

As I wrote in My first step in learning Generative Art, I started learning the generative art. I was glad that there were some reactions to the article and the tweet about it so I decided to draw a picture and post it every day for seven days.

Development environment

There's a language and an environment named Processing but I've used p5.js because I would want to write familiar JavaScript code.

I drew them using an interactive editor on the web at https://alpha.editor.p5js.org/ or https://www.openprocessing.org/. These sites are quite awesome to draw a picture even if you're a beginner. When auto-refresh is enabled, you can check the appearance quickly and it's convenient. But be careful, if you make mistakes in code that causes an infinite loop or OOM, the browser gets hanging up and your code in the editor might get lost. That was the most painful thing I faced.

Impression & What I learned

Because I had used HTML Canvas, the hurdle to begin drawing a picture with p5.js was not so high.

"Well, I can draw a line with line function, easy". "Hum, I can draw a rectangle with rect function, okay".

Makes sense, I thought that it was perfectly understandable --- until I saw high-level real artworks on the earth. At the moment I saw them, I unintentionally said to myself "Huh!?!?".

Having said that, I knew that the only way to get used to it is to use it patiently. After I started moving my hands, I found it fascinating soon.

Unlike code in real business, Generative Art has no exact answer to choose, and there is no end until I admit it good. Even when I would think "I'm getting done", comparing some patterns I couldn't make up my mind which one to choose, then I would spend some time. However, as time was being sucked indefinitely, I found me remember the joy of coding.

Although it is difficult to continue everyday posting, I would like to continue drawing generative art in the future so that I never forget the feeling.

Artworks

All of my artworks are published in OpenProcessing. I would like to look back them with some comments.

day 1: "Interfering objects" & "Light path in the dark"

I was copying examples in a reference without any idea. I was feeling delighted with creation when I could draw anything.

But... I now don't understand what I was thinking at that time. 😅

image

light

day 2: "Feather"

I wanted to be able to reproduce some sort of motif present in this real world. I don't like the color that I have not care so much.

image

day 3: "Strings"

In contrast to "Feather", I tried to put an abstract image in the picture. Although the theme is "strings", I drew an object that does not exist in the real world. I like the cool feeling.

image

day 4: "Flower on a Lofty Height"

Like day "Feather" I tried to draw something real with more delicacy. I think that the curved line using curveVertex just looked like petals of a flower and the ephemeral feeling by noStroke.

blue
yellow

day 5: "Unknown Language"

This one that I do not like next to those artworks of the day 1... I jumped to a difficult theme of expressing "feelings when I heard an unknown language", but I got lost what I would like to draw.

gif

day 6: "Surface Wave"

On this day I was clearly deciding to draw a picture with a wave using 2D noise. I tried adding a movement that looks like a wave traveling through the earth or a cross-section of the earth so that it does not end as just a copy and paste of a tutorial.

The code is getting complicated from around here and it seems to be hard to read back later.

2018-05-05 21 58 21

2018-05-05 21 57 17

day 7: "Pandora's Box"

The motif "Pandora's Box" slightly makes me itchy, but I like this picture the most due to its dynamism, afterimage atmosphere, vivid coloring.

pandora_black

pandora_white


If you've got interested in generative art, maybe it's time to start!

Oldest comments (0)