progs/mandelbrot.scala
changeset 418 fa7f7144f2bb
parent 394 839ad118e467
child 444 7a0735db4788
--- a/progs/mandelbrot.scala	Tue Dec 07 01:35:00 2021 +0000
+++ b/progs/mandelbrot.scala	Tue Dec 07 23:17:51 2021 +0000
@@ -104,8 +104,8 @@
   val d_x = (end.re - start.re) / W
   val d_y = (end.im - start.im) / H
    
-  for (y <- (0 until H)) {
-    for (x <- (0 until W)) {
+  for (y <- (0 until H).par) {
+    for (x <- (0 until W).par) {
     
      val c = start + 
       (x * d_x + y * d_y * i)