Skip to content

Instantly share code, notes, and snippets.

@akr4
Created October 9, 2012 23:52
Show Gist options
  • Save akr4/3862236 to your computer and use it in GitHub Desktop.
Save akr4/3862236 to your computer and use it in GitHub Desktop.
Processing with Scala
// modified from http://d.hatena.ne.jp/alpha_neet/20110706/1309901375
import processing.core._
import processing.core.PConstants._
trait Application extends PApplet {
def main(args: Array[String]) {
PApplet.runSketch(Array("title"), this)
}
}
object Main extends PApplet with Application {
override def setup {
size(400, 300, JAVA2D)
background(255, 0, 0)
text("Hello World", 100, 100)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment