Skip to content

Commit

Permalink
Fixed off-by-one error in fractal.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dkreft committed Nov 5, 2022
1 parent 0944e55 commit a6b3926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/App/Fractal/lib/fractal.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function drawFractal(canvas, opts = {}) {

shapesToDraw.push(child)
}
} while ( i <= opts.limit )
} while ( i < opts.limit )
}

function drawPolygon(ctx, { direction, length, points }) {
Expand Down

0 comments on commit a6b3926

Please sign in to comment.