This project serves as a starter template for using the p5.cpp library to create simple graphical sketches in C++.
p5.cpp is a C++ library inspired by the p5.js JavaScript library. It provides a simple and intuitive way to create interactive graphics and animations in C++.
To use this project, you need to have the following dependencies installed:
- SFML library
- p5.cpp library
First, you need to install the SFML library. You can do this by following the installation instructions on the SFML website: SFML Installation Guide.
After installing SFML, you can install the p5.cpp library:
You can manually clone the p5.cpp library from the GitHub repository:
git clone https://github.com/ArshiaZr/p5.cpp.git
Alternatively, you can use the provided build_p5.sh
script to automate the installation process. First, make sure the script is executable:
chmod +x build_p5.sh
Then, run the script:
./build_p5.sh
This script will clone the p5.cpp repository, build the package, and copy the necessary files to your project directory.
Once you have installed the SFML and p5.cpp libraries and made a Makefile, you can build and run the project:
make
./build/app_name
Replace app_name
with the name of your executable.