using fwt using gfx class Main { public static Void main () { particles := Particles (300, 200) 1000.times { particles.addParticle } // add 1000 particles Window // open up a display for the final tree { title = "Brownian Tree" EdgePane { center = ScrollPane { content = ParticleCanvas(particles) } }, }.open } } class Particles { Bool[][] image Int height Int width new make (Int height, Int width) { this.height = height this.width = width // set up initial image as an array of booleans with one set cell image = [,] width.times |w| { row := [,] height.times { row.add (false) } image.add (row) } image[Int.random(0..