|
|
|
@ -168,14 +168,14 @@ function design4(input) {
|
|
|
|
|
space += " ";
|
|
|
|
|
}
|
|
|
|
|
// for horizontal movement
|
|
|
|
|
for (let i = 0; i <= 1.5 * radius; i++) {
|
|
|
|
|
for (let i = 0; i <= 2 * radius; i++) {
|
|
|
|
|
if (i != mid) {
|
|
|
|
|
// for vertical movement
|
|
|
|
|
for (let j = 0; j <= 2 * radius; j++) {
|
|
|
|
|
|
|
|
|
|
dist = Math.sqrt(
|
|
|
|
|
(i - radius) * (i - radius) +
|
|
|
|
|
(j - radius) * (j - radius)
|
|
|
|
|
(j - radius / 2) * (j - radius / 2)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// dist should be in the range (radius - 0.5)
|
|
|
|
|