Created
January 22, 2014 13:54
-
-
Save b-studios/8559107 to your computer and use it in GitHub Desktop.
To use processing with scala: You have to download the processing `core.jar` available at http://processing.org/download/?processingand save it to your `lib/` directory. This gist just illustrates the basic setup necessary to run a processing application.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.core.PApplet | |
class ProcessingTest extends PApplet { | |
override def setup() { | |
size(1024, 768) | |
background(255) | |
} | |
override def draw() { | |
// Your drawing code | |
} | |
} | |
object ProcessingTest extends App { | |
PApplet.main("ProcessingTest") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the sbt users, no need to (explicitly) download anything, simply add these lines to your
build.sbt
file and you're good to go: