Make circle more circular

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-08 22:30:40 -05:00
parent 797287acbf
commit 699edf9d11

View File

@ -178,7 +178,7 @@ function design4(input) {
// for vertical movement // for vertical movement
for (j = 0; j <= 2 * radius; j++) { for (j = 0; j <= 2 * radius; j++) {
dist = Math.sqrt( dist = Math.sqrt(
((i - radius) * (i - radius) * 4) + ((i - radius) * (i - radius) * 4) + // (* 4) accounts for the offset between lines
(j - radius) * (j - radius) (j - radius) * (j - radius)
); );
//console.log(i, j, radius, dist); //console.log(i, j, radius, dist);