Skip to content

The Nature of Code (2024 Edition): Code Examples in C++ (openFrameworks).

License

Notifications You must be signed in to change notification settings

jackbdu/nature-of-code-2024-openframeworks

Repository files navigation

The Nature of Code (2024 Edition): Code Examples in C++ (openFrameworks)

This repository is a collection of C++ (openFrameworks) code examples for Daniel Shiffman's book the Nature of Code (2024 Edition), ported from his original code examples written in JavaScript (p5.js).

How do I run these examples?

  1. Download openFrameworks v0.12.0 for your desired platform (e.g. osx for macOS) from the openFrameworks download page and unzip it. You should see a folder titled of_v0.12.0_platform_release/ (e.g. of_v0.12.0_osx_release/ for macOS).

  2. Download this repository, unzip it, and place the extracted folder (nature-of-code-2024-openframeworks-main/) into the of_v0.12.0_platform_release/apps/ folder.

  3. Launch the projectGenerator app located in the of_v0.12.0_platform_release/projectGenerator/ folder. Click the gear icon ⚙️ and check Advanced options.

  1. In the projectGenerator app, go to the update multiple tab. Under Update path, click the magnifying glass icon 🔍 and open the repository folder (nature-of-code-2024-openframeworks-main/) from there, then Click the Update multiple button.

  2. Finally, open any code example (e.g. Example_0_1_Random_Walk/) in your preferred IDE to compile and run.

For additional guides, you can refer to the openFrameworks learning page.

License

The code examples in this repository are licensed under the MIT License. For copyright information of the Nature of Code book, please refer to the Nature of Code Credits page.

About

The Nature of Code (2024 Edition): Code Examples in C++ (openFrameworks).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published