Make circle more circular

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-08 18:55:03 +07:00
parent 50a08d0b41
commit 1d9561ae6d
1 changed files with 2 additions and 2 deletions

@ -171,11 +171,11 @@ function design4(input) {
for (let i = 0; i <= 2 * radius; i++) {
if (i != mid) {
// for vertical movement
for (let j = 0; j <= 1 * radius; j++) {
for (let j = 0; j <= 1.5 * radius; j++) {
dist = Math.sqrt(
(i - radius) * (i - radius) +
(j - radius)
(j - radius) * (j - radius)
);
// dist should be in the range (radius - 0.5)