merge changes
This commit is contained in:
commit
671912e2ec
@ -28,6 +28,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func mandelbrot(c complex128) uint16 {
|
func mandelbrot(c complex128) uint16 {
|
||||||
|
|
||||||
var z complex128
|
var z complex128
|
||||||
|
|
||||||
for i := 0; i < Iterations; i++ {
|
for i := 0; i < Iterations; i++ {
|
||||||
@ -58,7 +59,6 @@ func computeThread() {
|
|||||||
(float64(p.y)/Size+float64(p.tileY))/float64(uint(1<<p.tileZoom)),
|
(float64(p.y)/Size+float64(p.tileY))/float64(uint(1<<p.tileZoom)),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
p.out.SetRGBA(p.x, p.y, colors[val])
|
p.out.SetRGBA(p.x, p.y, colors[val])
|
||||||
p.wg.Done()
|
p.wg.Done()
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ var mandelbrotTypeOptions = {
|
|||||||
return '/mandelbrot/' + zoom + '/' + coord.x + '/' + coord.y + '.png';
|
return '/mandelbrot/' + zoom + '/' + coord.x + '/' + coord.y + '.png';
|
||||||
},
|
},
|
||||||
tileSize: new google.maps.Size(256, 256),
|
tileSize: new google.maps.Size(256, 256),
|
||||||
maxZoom: (1<<8) - 1,
|
maxZoom: (1<<16) - 1,
|
||||||
minZoom: 0,
|
minZoom: 0,
|
||||||
name: 'Mandelbrot'
|
name: 'Mandelbrot'
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user