Cyberpunk City

A sound generative p5.js sketch that shows a cyberpunk empire state building

Tool: p5.js

Keywords: music generative arts, pixels, cyberpunk

Link to sketch:

https://editor.p5js.org/yl4221@nyu.edu/sketches/vKlIi8JDt

 

Inspiration

I am a huge fan of cyberpunk. I love its dystopian futuristic feeling, the art style, and the Asian cultural elements. Blade runners, Cowboy Bebop, Ghost in the Shell, are some of my favorite cyberpunk animes and movies. I am so drawn to the world full of huge nylon lights, artificial intelligence, virtual reality, and a mix of high-tech and low-life scenes. Therefore, this time, I decided to experiment with this art style in my creative coding work.

 
 
photo-1533523705247-88786d3e9242.jpeg
photo-1607419727076-2a23c8896f01.jpeg
photo-1607419661113-96a1ab54b9e9.jpeg
 
 
 

The Code

 

Playing with Pixels

To change the sketch from the photo-collage to animated pixel art (to make it more like Japanese old anime), I mainly played with changing the pixels with p5.js default functions: the tint() and filter().

Screen Shot 2021-01-24 at 11.04.59 PM.png
Screen Shot 2021-01-24 at 11.03.26 PM.png

Photo Collage

I first collected a series of photos and put them together to create a cyberpunk-version empire state building. I animated the sketch through simple move functions.

cyber2-2.jpg
cyber1.jpg
code.jpg
empire-1.jpg
 

Music Generative Visual Effects

I was able to get the amplitude of the background music and then used that variable to create generative visual effects (the pixels will change according to the amplitude of the music).

Screen Shot 2021-01-24 at 11.53.34 PM.png
Screen Shot 2021-01-24 at 11.52.09 PM.png


The “Digital Rain”

To add to the “cyberpunk” feeling of the sketch, I referred to Matrix Digital Rain and added my version of digital rain to the sketch. Now Japanese characters and digits will fall off the screen, making the sketch more futuristic.

 
Screen Shot 2021-01-24 at 11.19.20 PM.png
Screen Shot 2021-01-24 at 11.18.55 PM.png
 
Previous
Previous

Food Seasoning | Speculative Design

Next
Next

Ocean Action | p5.js Game