A multi-sketch Processing 3 template for IntelliJ IDEA.
Looking to get up and running with Processing on the IntelliJ IDE? You're probably better of starting with mkj-is/processing-intellij.
Tired of cloning and moving between projects? Try this template on for size.
- Clone this repo
- Open the project in IntelliJ IDEA (File > Open.. > Navigate to processing-intellij)
- Open Debug Config (see screenshot below)
- Add the same configuration you see on the screenshot (see screenshot)
- Build & run (
shift+f10
on windoes)
File > Import Settings... > navigate to processing-intellij folder and select templates.jar
- create a new package under
src
- Create a new class from the
SketchBase
template
-
In
BaseMain
, add the path to your new sketch's base class to the ```sketches`` String array (the format is pacakgeName.ClassName) -
To add classes to a sketch, create a class from
SketchObject
in the same package as the sketch base class. Make sure to always pass the PApplet object (this
) into the constructor, so that PApplet's methods (fill()
,colorModer()
,random()
and so on) will be available inside the object, from the local PApplet object (In theexample.Example
sketch, I've usedp
as the PApplet inside the Walker object)
This project contains the Processing core libraries and is therefore distibuted under GPL licence.
Based on mkj-is/processing-intellij