p5.js Editor: a Mac code editor designed for p5.js
The p5.js Editor is a simple coding environment designed for new programmers to get started with p5.js. It's modeled off of the Processing editor, and intended to provide a similar experience.
Features
- Code editor with syntax highlighting that supports javascript, p5.js syntax, html and css.
- Creates and manages p5.js project folders
- Automatically updates new releases of p5.js and add-on libraries
- Runs sketches inside the editor or in the browser
- Starts a local server for the user
- Provides a basic logging console
Future Plans
- Windows & Linux versions
- Integrated p5.js documentation
- Update sketches live
Download
To get started, download the editor here, and visit p5js.org for more info on p5.js.
Development
If you're interested in contributing to the development of the editor, check out our issues page, or email Sam Lavigne.
When you're ready to get started, follow the direction below:
Prerequisites
- Node.js
- Git
Setup
- Clone this repo:
git clone https://github.com/processing/p5.js-editor
- Enter the repo directory and install the development modules:
npm install
- Install secondary modules:
cd public
and thennpm install
- Install gulp.js globally:
npm install gulp -g
- From the root directory of the repo run gulp:
gulp
- Start up the app:
npm run app
Workflow
Most development takes place in the app
folder. Gulp will watch the files in the app folder, then bundle them up with Browserfiy, and send the results to the public
folder.
The public folder contains the package.json
for the application window, as well as the base index.html
file for the application.
Below you'll find documentation for the different libraries we're using