Let's try mozilla's fixedCharAt function

master
Caleb Fontenot 2023-04-30 18:34:41 +07:00
parent 0e923aa4b4
commit 419ad415ed
1 changed files with 2 additions and 2 deletions

@ -262,14 +262,14 @@ function design5(input) {
if (dist > radius - 1 && dist < radius + 1) { //&& dist > radius - 1
lineHasInput = true;
outputLine += "" + input.fixedCharAt(charIterate(input)); //zero-width space
outputLine += "" + fixedCharAt(input, charIterate(input)); //zero-width space
} else {
outputLine += " ";
}
}
} else {
lineHasInput = true;
outputLine += input.fixedCharAt(charIterate(input)) + space + input + space + spaceOffset + input.fixedCharAt(charIterate(input));
outputLine += fixedCharAt(input, charIterate(input)) + space + input + space + spaceOffset + fixedCharAt(input, charIterate(input));
}
//console.log(i, j, outputLine);