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