Converted PerlinTest sketch to Java app.