Make circle more circular
This commit is contained in:
parent
797287acbf
commit
699edf9d11
@ -178,7 +178,7 @@ function design4(input) {
|
|||||||
// for vertical movement
|
// for vertical movement
|
||||||
for (j = 0; j <= 2 * radius; j++) {
|
for (j = 0; j <= 2 * radius; j++) {
|
||||||
dist = Math.sqrt(
|
dist = Math.sqrt(
|
||||||
((i - radius) * (i - radius) * 4) +
|
((i - radius) * (i - radius) * 4) + // (* 4) accounts for the offset between lines
|
||||||
(j - radius) * (j - radius)
|
(j - radius) * (j - radius)
|
||||||
);
|
);
|
||||||
//console.log(i, j, radius, dist);
|
//console.log(i, j, radius, dist);
|
||||||
|
Loading…
Reference in New Issue
Block a user