https://github.com/jackbdu/nature-of-code-2024-openframeworks
The Nature of Code (2024 Edition): Code Examples in C++ (openFrameworks).
https://github.com/jackbdu/nature-of-code-2024-openframeworks
cpp creative-coding nature-of-code openframeworks physics
Last synced: 4 months ago
JSON representation
The Nature of Code (2024 Edition): Code Examples in C++ (openFrameworks).
- Host: GitHub
- URL: https://github.com/jackbdu/nature-of-code-2024-openframeworks
- Owner: jackbdu
- Created: 2025-02-01T03:00:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-30T01:54:17.000Z (about 1 year ago)
- Last Synced: 2025-03-30T02:31:50.074Z (about 1 year ago)
- Topics: cpp, creative-coding, nature-of-code, openframeworks, physics
- Language: Makefile
- Homepage:
- Size: 425 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Nature of Code (2024 Edition): Code Examples in C++ (openFrameworks)
This repository is a collection of C++ ([openFrameworks](https://openframeworks.cc/)) code examples for **Daniel Shiffman**'s book [_the Nature of Code (2024 Edition)_](https://natureofcode.com/), ported from his [original code examples](https://natureofcode.com/examples/) written in JavaScript ([p5.js](https://p5js.org/)).
## 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](https://openframeworks.cc/download/) 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](https://github.com/jackbdu/nature-of-code-2024-openframeworks/archive/refs/heads/main.zip), 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 :gear: and check _Advanced options_.
|  |  |
| ------------------------------------------------------------- | ------------------------------------------------------------ |
4. In the _projectGenerator_ app, go to the _update multiple_ tab. Under _Update path_, click the magnifying glass icon :mag: and open the repository folder (`nature-of-code-2024-openframeworks-main/`) from there, then Click the _Update multiple_ button.
5. 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](https://openframeworks.cc/learning/)._
## License
The code examples in this repository are licensed under the [MIT License](LICENSE). For copyright information of the Nature of Code book, please refer to the [Nature of Code Credits page](https://natureofcode.com/credits/).