forked from Supositware/Haha-Yes
Updated font size
This commit is contained in:
parent
928e035497
commit
acf2aca52d
1 changed files with 3 additions and 3 deletions
|
@ -38,9 +38,9 @@ class nolightCommand extends Command {
|
||||||
});
|
});
|
||||||
const bg = await loadImage(buffer);
|
const bg = await loadImage(buffer);
|
||||||
ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);
|
ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);
|
||||||
ctx.font = '70px ubuntu';
|
ctx.font = '15px ubuntu';
|
||||||
ctx.fillStyle = '#FFFFFF';
|
ctx.fillStyle = '#FFFFFF';
|
||||||
ctx.fillText(text, canvas.width / 10, canvas.height / 9);
|
ctx.fillText(text, 10, 20);
|
||||||
|
|
||||||
fs.writeFile('./img/frame001.png', canvas.toBuffer(), function (err) {
|
fs.writeFile('./img/frame001.png', canvas.toBuffer(), function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
Loading…
Reference in a new issue