Generative Coding — The Nature of Code Ported to Three.js
Daniel Shiffman’s Nature of Code book introduced me to the world of generative coding.
This port of his Nature of Code examples to three.js is my homage to the book.
I’ve not reproduced every single example, but rather the key ones in each chapter. These should be more than enough for anyone to understand how to code all his examples in three.js.
I’ve also not followed the styles and colors faithfully, but rather added some of my own flourishes.
The listing is below. First link in each set is the demo, and the second link is the github repo with the code.
In this chapter, Daniel introduces one to the beauty of randomness.
In this chapter, Daniel shows us how to create a bouncing ball.
In this chapter, Daniel shows us how to recreate real world forces in the digital space.
In this chapter, we learn how to make things go round and round.
In this chapter, Daniel teaches how to create little universes of particles.
In this chapter, we see how to manipulate groups of particles and give them some life.
In this chapter, we see how life came about.
In this chapter, we get introduced to fractals.
In this chapter, we create things that evolve!