---
key: resource/nature-of-code
type: resource
id: nature-of-code
lang: en
title: The Nature of Code
summary: >-
  Connects vectors, forces, particles, autonomous agents and generative systems
  through small experiments. Examples use JavaScript and p5.js.
updatedAt: null
status: active
url: 'https://gamemechanics.pro/en/resources/#resource-nature-of-code'
jsonUrl: 'https://gamemechanics.pro/api/v1/knowledge/en/resource/nature-of-code.json'
markdownUrl: 'https://gamemechanics.pro/content/knowledge/en/resource/nature-of-code.md'
aliases: []
tags:
  - book
  - ''
  - foundations
sourceIds:
  - source-5b2758af8ecc2317
sources:
  - id: source-5b2758af8ecc2317
    title: The Nature of Code
    url: 'https://natureofcode.com/'
    verifiedAt: null
relations: []
placements: []
supersededBy: []
attributes:
  kind: book
  format: null
  language: en
  authors: Daniel Shiffman
endsAt: null
provenance: >-
  Original editorial recommendation. The external material retains its author’s
  rights.
license: CC-BY-4.0
codeLicense: MIT
attribution: gamemechanics.pro contributors
---
# The Nature of Code

id: nature-of-code
type: resource
key: resource/nature-of-code
lang: en
status: active
url: https://gamemechanics.pro/en/resources/#resource-nature-of-code

Connects vectors, forces, particles, autonomous agents and generative systems through small experiments. Examples use JavaScript and p5.js.

## When to use it

Connects vectors, forces, particles, autonomous agents and generative systems through small experiments. Examples use JavaScript and p5.js.

## Access

The complete online book, examples and exercises are open. Text: CC BY-NC-SA 4.0; check code terms separately.

## Try it

Build an object with forces and a speed limit, then add steering behavior.

## Connected materials


## Sources and provenance

Original editorial recommendation. The external material retains its author’s rights.

- [The Nature of Code](https://natureofcode.com/) (id: source-5b2758af8ecc2317)

CC-BY-4.0 · gamemechanics.pro contributors
