Make circle more circular

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-08 19:04:09 +07:00
parent 1b4cb4715b
commit 648bf44864
1 changed files with 2 additions and 2 deletions

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