Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jcponce committed Aug 15, 2024
1 parent 0109d1b commit 3ce627b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion threejs/dodecahedron-fractal/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function updateFractal() {
}

function goldenDragon(x1, y1, x2, y2, turn, n, vertices) {

// https://larryriddle.agnesscott.org/ifs/heighway/goldenDragon.htm
const distance = Math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2);
if (n <= 0 || distance < 0.05) {
vertices.push(new THREE.Vector3(x2, y2, 0));
Expand Down

0 comments on commit 3ce627b

Please sign in to comment.