---
title: "The Nature of Code"
description: "Free online book on simulating natural systems — forces, oscillation, particles, autonomous agents, neural networks — in code."
canonical: "https://vibing.inc/library/the-nature-of-code-vg-1206"
category: "Learning & Craft"
subcategory: "3D & WebGL learning"
license: "CC-BY-NC"
author: "Daniel Shiffman (@shiffman)"
source: "https://natureofcode.com/"
---

# The Nature of Code
Free online book on simulating natural systems — forces, oscillation, particles, autonomous agents, neural networks — in code.
## Facts
- Source: https://natureofcode.com/
- Category: Learning & Craft / 3D & WebGL learning
- Author: Daniel Shiffman (@shiffman)
- Licence: CC-BY-NC
- Tags: creative-coding, simulation, book, p5js
## Why it's a gem
Where realistic UI motion, particles and flocking behaviours actually come from
---
Listed in The Vibeary: https://vibing.inc/library/the-nature-of-code-vg-1206 · JSON: https://vibing.inc/api/public/library/gems/the-nature-of-code-vg-1206