Skip to content

JaimeStill/simulacra

Repository files navigation

Simulacra

See: Simulacra and Simulation.

Study of The Nature of Code by Daniel Shiffman.

This project is organized around the following constructs:

  • simulation - a self-contained p5.js sample; encapsulates a discrete computational model that explores how fundamental principles manifest into a controlled environment.
  • axiom - fundamental principles upon which different simulations are built; used to categorize simulations.
  • pattern - patterns define common metadata parameters and are used to connect a simulation to an axiom.
  • theme - theme provides helpful functions for retrieving colors that respect the current preferred color scheme.

Workflow

  1. Create a class that extends from Simulation.
  2. Once the simulation is complete, create an instance of SimulationPattern within the appropriate axiom pattern.

Creating an Axiom

  1. Create a class that extends from Axiom.
  2. Create a pattern array for the axiom that will define the associated SimulationPattern objects.
  3. Add the axiom to the Axioms array.

Running

This project was generated using Angular CLI version 19.2.7.

To start a local development server, run:

npm run start

Once the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.

About

Study of The Nature of Code by Daniel Shiffman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published