switch to .charCodeAt();

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-30 18:28:04 -05:00
parent 415244bd10
commit 7dff6e190b

View File

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