last commit made program much faster. This commit allows more iterations

This commit is contained in:
Alexander Bass 2022-07-05 01:47:37 -04:00
parent ef620b222d
commit e360841b13
2 changed files with 1 additions and 2 deletions

View file

@ -25,7 +25,7 @@
<input class="startButton" type="button" value="Render" onclick="render();" />
<div class="subSection">
<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 class="subSection">
<div class="inline">

View file

@ -70,7 +70,6 @@ function render() {
const yu = (viewWidth / height * (2 * (height - y) - height)) + view[1];
const xu = (viewWidth / width * (2 * x - width)) + view[0];
let x2, y2 = 0;
// Set up the first iteration of the fractal before looping through the rest.