torb-no / nature-of-code-p5-ts

The exercises from The Nature of Code in using the TypeScript language and p5.js libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nature of Code p5.js/TypeScript

This is my attempt at doing the exercises from Daniel Shiffman’s excellent book: The Nature of Code in p5.js and TypeScript. Reading it and working through the exercises seems like a great way to learn about how to use algorithms inspired by natural phenonema to create interactive visual software.

The entire book can read online for free or you can buy a PDF of the book with a price of your own choosing. Daniel Shiffman also has a series of videos on his YouTube which follows the book if you prefer that.

If you do plan on doing the exercies I recommend you not look at my exercises as they are much more fun to do if you come up with answers to them on your own. They can be useful as to look at how to set up p5 with TypeScript.

Why p5.js and TypeScript? I use TypeScript here because it provides excellent tooling (autocompletion, refactoring, etc…). The book uses Processing which is very similar to p5.js, which is a web-based spiritual successor to Processing.

About

The exercises from The Nature of Code in using the TypeScript language and p5.js libraries


Languages

Language:TypeScript 84.3%Language:HTML 14.8%Language:CSS 0.9%