Skip to content

Commit

Permalink
add comment to Mandelbrot func
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonWaldherr committed Sep 10, 2017
1 parent b79eb71 commit 274b474
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions bbmandelbrot.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func pixelColor(x, y, width, height uint64, csr, csg, csb int) color.RGBA {
}
}

// Mandelbrot generates the Mandelbrot picture as *image.RGBA according to the parameters
func Mandelbrot(width, height, cx1, cx2, cy1, cy2 uint64, csr, csg, csb int) (*image.RGBA, string) {
var wg sync.WaitGroup
var fullHeight bool
Expand Down
2 changes: 1 addition & 1 deletion demo/cliexample.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package main

import (
bbmandelbrot ".."
bbmandelbrot "simonwaldherr.de/go/bbmandelbrotGo"
"flag"
"fmt"
"image/png"
Expand Down
2 changes: 1 addition & 1 deletion demo/webexample.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package main

import (
bbmandelbrot ".."
bbmandelbrot "simonwaldherr.de/go/bbmandelbrotGo"
"encoding/base64"
"fmt"
"image/png"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## what

in memoriam [Benoît B. Mandelbrot](http://en.wikipedia.org/wiki/Benoit_Mandelbrot)
the [Mandelbrot set](http://en.wikipedia.org/wiki/Mandelbrot_set) is a very popular [fractal](http://en.wikipedia.org/wiki/Fractal).
the [Mandelbrot set](http://en.wikipedia.org/wiki/Mandelbrot_set) is a very popular [fractal](http://en.wikipedia.org/wiki/Fractal).
There is a great [Song (and Video) on YouTube about the Mandelbrot(/Julia) fractal](https://www.youtube.com/watch?v=ES-yKOYaXq0).
Many thanks to [Jonathan Coulton](https://www.jonathancoulton.com) for this great song and for sharing it under [CC](https://creativecommons.org)-BY-NC

Expand Down

0 comments on commit 274b474

Please sign in to comment.