Make circle more circular
This commit is contained in:
parent
0e1731fbc4
commit
1b4cb4715b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user