This commit is contained in:
Dragon Fire
2020-06-03 18:55:12 -04:00
parent c3e5476ace
commit 4fb295fbc0
+3 -3
View File
@@ -76,17 +76,17 @@ module.exports = class PhoebeTeachingJoeyCommand extends Command {
ctx.drawImage(base, 0, 0);
ctx.fillStyle = 'white';
ctx.strokeStyle = 'black';
ctx.lineWidth = 5;
ctx.lineWidth = 10;
ctx.textBaseline = 'top';
ctx.textAlign = 'center';
let i = 0;
for (const coords of coord) {
let j = 0;
for (const [x, y] of coords) {
ctx.font = '18px Noto';
ctx.font = '20px Noto';
let step = steps[i];
if (step === incorrect && j === 0) step = correct.join(' ');
let fontSize = 18;
let fontSize = 20;
while (ctx.measureText(step).width > 260) {
fontSize -= 1;
ctx.font = `${fontSize}px Noto`;