Commits

Radu Ciorba committed d42362f Draft

long lost changeset: boost by 4 not 1000
parranoid change about max_int

  • Participants
  • Parent commits d9d3f5e

Comments (0)

Files changed (1)

File src/buddah.go

 	for x:=0; x<size; x++ {
 		for y:=0; y<size; y++ {
 			pix := brot[x][y]
-			norm := float64(brot[x][y]*1000)/float64(max)*65534
-			if norm > 65535{
-				norm = 65535
+			norm := float64(brot[x][y]*4)/float64(max)*65534
+			if norm > 65534{
+				norm = 65534
 			}
-			if pix > 65535{
-				pix = 65535
+			if pix > 65534{
+				pix = 65534
 			}
 			gray.SetGray16(
 				x, y,
 	point, open := <- points
 	for open {
 		iterations, orbit := mandelbrot(point)
-		if iterations < max_iter {
+		if iterations == max_iter {
 			orbits <- orbit
 		}
 		point, open = <- points