From a6b39265e9ce3b0f82c32a66457647b15eb5f49c Mon Sep 17 00:00:00 2001 From: Dan Kreft Date: Sat, 5 Nov 2022 14:02:57 -0700 Subject: [PATCH] Fixed off-by-one error in fractal.js --- src/components/App/Fractal/lib/fractal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/App/Fractal/lib/fractal.js b/src/components/App/Fractal/lib/fractal.js index 2dad56c..63ab81c 100644 --- a/src/components/App/Fractal/lib/fractal.js +++ b/src/components/App/Fractal/lib/fractal.js @@ -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 }) {