Skip to content

Source group · 8 artworks · 1 families

shiffman · pearson

Daniel Shiffman and Matt Pearson — Nature of Code lineage, from noise to flow-fields.

Path on disk: library_external/shiffman_pearson_textbook/

Sample of Genetic Algorithm (Evolve Toward Target String)

Genetic Algorithm (Evolve Toward Target String)

shiffman_pearson_textbook · geneticAlgorithmString

A textbook genetic algorithm that evolves a population of binary strings toward a target ASCII string (default 'HELLO WORLD!').

View →
Sample of Lindenmayer L-System (Textbook Formulation)

Lindenmayer L-System (Textbook Formulation)

shiffman_pearson_textbook · lindenmayerTextbook

Lindenmayer L-system string rewriting with a 2-D turtle interpreter, the canonical textbook formulation used in both Shiffman's Nature of Code Ch.

View →
Sample of Mandelbrot Set (Escape-Time Fractal)

Mandelbrot Set (Escape-Time Fractal)

shiffman_pearson_textbook · mandelbrotSet

The Mandelbrot set rendered by escape-time iteration of z = z^2 + c on a window of the complex plane.

View →
Sample of Perlin Noise Flow Field

Perlin Noise Flow Field

shiffman_pearson_textbook · perlinFlowField

A 2-D scalar field of Perlin gradient noise is sampled on a coarse grid; each cell is assigned a heading theta = 2*pi * n.

View →
Sample of Random Walk / Drunkard's Walk

Random Walk / Drunkard's Walk

shiffman_pearson_textbook · randomWalkDrunkard

Many random walkers each start at the canvas center and take a stochastic 2-D step every tick.

View →
Sample of Reynolds Boids (Separation / Alignment / Cohesion)

Reynolds Boids (Separation / Alignment / Cohesion)

shiffman_pearson_textbook · boidsClassic

Reynolds' classic boids flocking model.

View →
Sample of Stochastic Recursive Fractal Tree

Stochastic Recursive Fractal Tree

shiffman_pearson_textbook · recursiveTree

Stack-based stochastic fractal tree from Shiffman's Nature of Code Ch.

View →
Sample of Wolfram Elementary 1-D CA (Textbook)

Wolfram Elementary 1-D CA (Textbook)

shiffman_pearson_textbook · wolframCA1DTextbook

The textbook Wolfram elementary cellular automaton.

View →