This repository is all about learning how to setup and run Processing and p5.js projects in VSCode without using Processing's IDE.
- Open up the command palette and select
Create p5.js Project. - Write your code in the
sketch.jsfile generated.
-
First create a directory with
<dir_name>as its name andcdinto it. -
Then create a
<dir_name.pde>file in that directory which will be your main processing project.
-
Next open up the command palette and run,
Processing: Create Task File.- This creates a
.vscodeconfig file that stores relevant information about the processing project. - This step is needed only once every project.
- This creates a
-
Lastly, to run the processing project, i.e., the
.pdefile, open up the command palette and run,Processing: Run Processing Project.- Alternatively, use the shortcut,
Ctrl + Shift + Bto build and run the.pdefile.
- Alternatively, use the shortcut,
-
First create a directory with
<dir_name>as its name andcdinto it. -
Then copy the
processing-py.jarfile fromC:\Users\Volt\Documents\processing.py-windows64\processing.py-3017-windows64(on my local machine) and paste that copy into the same directory.- This can be done by running this in the powershell:
cd processingPycp C:\Users\Volt\Documents\processing.py-windows64\processing.py-3017-windows64\processing-py.jar
- This can be done by running this in the powershell:
-
Create a python file with your processing code in python mode. Save it as a
.pyfile. -
To run the file, open up the terminal in that directory and run,
java -jar processing-py.jar <file_name.py>
When committing and pushing code to GitHub, be sure to not include the processing-py.jar file in the staging area.