Since every swarm simulation needs to start for somewhere, here is a quick start tutorial for getting started with scala, processing and IntelliJ:
- Download and install IntelliJ Community Edition (free)
- Launch IntelliJ and install Scala plugin from edit -> settings -> plugins -> browse repositories -> Search for scala
- Download scala (zip archive) and extract it (C:\scala-2.9.2 would be great!)
- Create a new project in IntelliJ and add Scala as a Facet, insert "C:\scala-2.9.2" in the scala distribution input.
- Right click on src > new scala object "HelloWorld". Copy-paste the hello world example from scala official site and run your first scala application.
- (Bonus1) Enable scala syntax highlighting (click on the yellow square on bottom-right), I don't know why but it's still not enabled by default.
- (Bonus2) - to make scala compilation super fast you can go to Project Structure > Facets > Scala and choose "Use project FSC" (Fast scala compiler)
- Download processing from http://processing.org/download/ and extract it (C:\processing-1.5.1 would be great!)
- In intelliJ go to project structure > Libraries > click on the "+" and add C:\processing-1.5.1\lib
- Finally, here is a simple template to run scala + processing
- (Bonus 3) Full screen is supported by adding "--present" as argument: PApplet.main(Array[String]("--present","ScalaProcessingExample"))
Please update, this seems out of date.
ReplyDelete