mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix
This commit is contained in:
@@ -75,6 +75,7 @@ module.exports = class PhoebeTeachingJoeyCommand extends Command {
|
|||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
|
ctx.strokeStyle = 'black';
|
||||||
ctx.textBaseline = 'top';
|
ctx.textBaseline = 'top';
|
||||||
ctx.textAlign = 'center';
|
ctx.textAlign = 'center';
|
||||||
let i = 0;
|
let i = 0;
|
||||||
@@ -89,6 +90,7 @@ module.exports = class PhoebeTeachingJoeyCommand extends Command {
|
|||||||
fontSize -= 1;
|
fontSize -= 1;
|
||||||
ctx.font = `${fontSize}px Noto`;
|
ctx.font = `${fontSize}px Noto`;
|
||||||
}
|
}
|
||||||
|
ctx.strokeText(step, x, y, 260);
|
||||||
ctx.fillText(step, x, y, 260);
|
ctx.fillText(step, x, y, 260);
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user