Playing with this Python library: https://github.com/p5py/p5 Here are the docs: https://p5.readthedocs.io/en/latest/#
- Clone the repository
- Ensure that you have the following packagess installed via brew
brew install glfw libjpeg freetype
- Start a pipenv shell
pipenv shell
- Run the following command so that Pillow can compile corretly:
export LDFLAGS="-L/opt/homebrew/opt/jpeg/lib -L/opt/homebrew/opt/freetype/lib"
export CPPFLAGS="-I/opt/homebrew/opt/jpeg/include -I/opt/homebrew/opt/freetype/include"
- Now run the install for p5
pip install p5
(it has to be done like this due to building Pillow) - Now install everything else using pipenv
pipenv install --dev
- Run the spiral demo with `python ./spiral.py``