--- a/progs/mandelbrot.scala Fri Nov 10 09:00:46 2017 +0000
+++ b/progs/mandelbrot.scala Fri Nov 10 09:23:23 2017 +0000
@@ -9,7 +9,7 @@
// complex numbers
case class Complex(val a: Double, val b: Double) {
- // represents the complex number a + b*i
+ // represents the complex number a + b * i
def +(that: Complex) = Complex(this.a + that.a, this.b + that.b)
def -(that: Complex) = Complex(this.a - that.a, this.b - that.b)
def *(that: Complex) = Complex(this.a * that.a - this.b * that.b,
@@ -86,9 +86,9 @@
}
pixel(x0, y0, iters(Complex(0, 0), 0))
- }
- viewer.updateUI()
- }
+ }
+ viewer.updateUI()
+ }
}
// Examples