This is an example port from this sketch(http://www.openprocessing.org/sketch/51260)
in Scala.