p5js-sketches

just messin’ around & trying new things…


Table of Contents


About

This repository showcases various interactive and generative art pieces created using the p5.js JavaScript library. Some sketches explore specific concepts - like user interaction or employing data structures to optimize performance - while other sketches are focused entirely on aesthetics.


Sketches


How to Run

There are a few ways to view these p5.js sketches:

Option 1: View Online

While these sketches are maintained here on GitHub for version control and visibility, the simplest way to experience them is directly through the p5.js Web Editor, which can be found by visiting this link in your web browser:

editor.p5js.org/RyJoGri/collections/d7MfvdxL8

Once you’re there, select the sketch of your choosing and use the ‘play’ button in the top right corner to view the sketch

Option 2: View Through GitHub Pages

Another great option to view these sketches is through GitHub Pages, which can be found by visiting this link in your web browser:

ryangriffin.github.io/p5js-sketches/

Once you’re there, simply click on the name in the Sketches section of this README to view the sketch.

Option 3: Run Locally using a Local Server

This is not the recommended way to run p5.js sketches, but can be useful to avoid common cross-origin issues.

Prerequisites:

Steps:

  1. Clone the repository:
    git clone https://github.com/RyanGriffin/p5js-sketches.git
    
  2. Navigate into the repository directory:
    cd p5js-sketches
    
  3. Start the local server:
    http-server
    
  4. Open your web browser and navigate to the address provided by http-server (usually http://localhost:8080 or similar). You can then click on the folder for the sketch you wish to view.

Technologies Used


License

This project is licensed under the MIT License - see the LICENSE file for details.


Contact