P5.js Sketches

Exploring evolutionary algorithms and visual simulation, inspired by The Nature of Code by Daniel Shiffman (Chapter 9).

Sketch 1: Evolving Shapes

This sketch demonstrates a genetic algorithm evolving toward an optimal geometric configuration.

Sketch 2: Evolutionary Creature Behavior

A simulation of autonomous agents evolving traits via selection and mutation processes.