Created
October 9, 2012 23:52
-
-
Save akr4/3862236 to your computer and use it in GitHub Desktop.
Processing with Scala
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
// 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