mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Somebody once told me the font was macaroni
This commit is contained in:
@@ -57,7 +57,7 @@ module.exports = class MemeGenCommand extends Command {
|
|||||||
for (let i = 0; i < topLines.length; i++) {
|
for (let i = 0; i < topLines.length; i++) {
|
||||||
const textHeight = (i * fontSize) + (i * 10);
|
const textHeight = (i * fontSize) + (i * 10);
|
||||||
ctx.strokeStyle = 'black';
|
ctx.strokeStyle = 'black';
|
||||||
ctx.lineWidth = 8;
|
ctx.lineWidth = 5;
|
||||||
ctx.strokeText(topLines[i], base.width / 2, textHeight);
|
ctx.strokeText(topLines[i], base.width / 2, textHeight);
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
ctx.fillText(topLines[i], base.width / 2, textHeight);
|
ctx.fillText(topLines[i], base.width / 2, textHeight);
|
||||||
@@ -68,7 +68,7 @@ module.exports = class MemeGenCommand extends Command {
|
|||||||
for (let i = 0; i < bottomLines.length; i++) {
|
for (let i = 0; i < bottomLines.length; i++) {
|
||||||
const textHeight = initial + (i * fontSize) + (i * 10);
|
const textHeight = initial + (i * fontSize) + (i * 10);
|
||||||
ctx.strokeStyle = 'black';
|
ctx.strokeStyle = 'black';
|
||||||
ctx.lineWidth = 8;
|
ctx.lineWidth = 5;
|
||||||
ctx.strokeText(bottomLines[i], base.width / 2, textHeight);
|
ctx.strokeText(bottomLines[i], base.width / 2, textHeight);
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
ctx.fillText(bottomLines[i], base.width / 2, textHeight);
|
ctx.fillText(bottomLines[i], base.width / 2, textHeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user