Make circle more circular

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-08 19:01:04 -05:00
parent 0e1731fbc4
commit 1b4cb4715b

View File

@ -174,8 +174,8 @@ function design4(input) {
for (let j = 0; j <= 2 * radius; j++) { for (let j = 0; j <= 2 * radius; j++) {
dist = Math.sqrt( dist = Math.sqrt(
(i - radius) * (i - radius) + (i - radius / 2) * (i - radius / 2) +
(j - radius / 2) * (j - radius / 2) (j - radius) * (j - radius)
); );
// dist should be in the range (radius - 0.5) // dist should be in the range (radius - 0.5)