last commit made program much faster. This commit allows more iterations
This commit is contained in:
parent
ef620b222d
commit
e360841b13
|
@ -25,7 +25,7 @@
|
||||||
<input class="startButton" type="button" value="Render" onclick="render();" />
|
<input class="startButton" type="button" value="Render" onclick="render();" />
|
||||||
<div class="subSection">
|
<div class="subSection">
|
||||||
<h4>Iterations<h4>
|
<h4>Iterations<h4>
|
||||||
<input id="iterations" type="range" min="5" max="2000" value="200" class="slider">
|
<input id="iterations" type="range" min="5" max="3000" value="200" class="slider">
|
||||||
</div>
|
</div>
|
||||||
<div class="subSection">
|
<div class="subSection">
|
||||||
<div class="inline">
|
<div class="inline">
|
||||||
|
|
1
index.js
1
index.js
|
@ -70,7 +70,6 @@ function render() {
|
||||||
const yu = (viewWidth / height * (2 * (height - y) - height)) + view[1];
|
const yu = (viewWidth / height * (2 * (height - y) - height)) + view[1];
|
||||||
const xu = (viewWidth / width * (2 * x - width)) + view[0];
|
const xu = (viewWidth / width * (2 * x - width)) + view[0];
|
||||||
|
|
||||||
|
|
||||||
let x2, y2 = 0;
|
let x2, y2 = 0;
|
||||||
|
|
||||||
// Set up the first iteration of the fractal before looping through the rest.
|
// Set up the first iteration of the fractal before looping through the rest.
|
||||||
|
|
Loading…
Reference in a new issue