Make circle more circular

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

@ -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)