Sign in to confirm you’re not a bot
This helps protect our community. Learn more
The Nature of Code
$39.99
Ships with an exclusive bookmark and sticker when you order direct from me!What if you could re-create the awe-inspiring flocking patterns of birds or the hypnotic dance of fireflies—with code? For over a decade, The Nature of Code has empowered countless readers to do just that, bridging the gap between creative expression and programming. This innovative guide by Daniel Shiffman, creator of the beloved Coding Train, welcomes budding and seasoned programmers alike into a world where code meets playful creativity. This JavaScript-based edition of Shiffman’s groundbreaking work gently unfolds the mysteries of the natural world, turning complex topics like genetic algorithms, physics-based simulations, and neural networks into accessible and visually stunning creations. Embark on this extraordinary adventure with projects involving: A physics engine: Simulate the push and pull of gravitational attraction. Flocking birds: Choreograph the mesmerizing dance of a flock. Branching trees: Grow lifelike and organic tree structures. Neural networks: Craft intelligent systems that learn and adapt. Cellular automata: Uncover the magic of self-organizing patterns. Evolutionary algorithms: Play witness to natural selection in your code. Shiffman’s work has transformed thousands of curious minds into creators, breaking down barriers between science, art, and technology, and inviting readers to see code not just as a tool for tasks but as a canvas for boundless creativity. Whether you’re deciphering the elegant patterns of natural phenomena or crafting your own digital ecosystems, Shiffman’s guidance is sure to inform and inspire. The Nature of Code is not just about coding; it’s about looking at the natural world in a new way and letting its wonders inspire your next creation. Dive in and discover the joy of turning code into art—all while mastering coding fundamentals along the way. NOTE: All examples are written with p5.js, a JavaScript library for creative coding, and are available on the book's website.
The Coding Train tagged products below. Learn more
Guest Tutorial #1: Particle.io Board and p5.js with Tega Brain
492Likes
27,616Views
2016Nov 15
This is the first in a new series of guest tutorials! My first guest is Tega Brain. Tega is an Australian artist, teacher and engineer who gives us a tutorial on environmental sensing and p5.js. In this video, she shows you how to set up a light sensor with a wireless physical computing platform called Particle. She teaches you how to read the data in p5js and make a basic data visualization. Link to code: https://github.com/tegacodes/p5js-sen... Link to particle website: https://www.particle.io/ Below is a link to the Particle tutorial that's referred to in this video. This getting started tutorial lists the electronic components you need, shows how to build the circuit, and provides the Particle code that Tega walks through. It's the section under the subheading "Read your Photoresistor: Function and Variable " at this link: https://docs.particle.io/guide/gettin... Links to videos mentioned in this tutorial: Playlist on RESTful APIs:    • Session 8: Building an API with Node.js an...   Video on JSON:    • 10.2: What is JSON? Part I - p5.js Tutorial   For more Guest Tutorials and Interviews:    • Guest Tutorials and Interviews   For more Coding Challenges:    • Coding Challenges   Help us caption & translate this video! http://amara.org/v/0PrN/ 📄 Code of Conduct: https://github.com/CodingTrain/Code-o...

Follow along using the transcript.

The Coding Train

1.75M subscribers