This commit is contained in:
Daniel Odendahl Jr
2018-09-12 02:48:36 +00:00
parent 7203ae4966
commit a002825e9f
+1 -1
View File
@@ -54,7 +54,7 @@ module.exports = class NikeAdCommand extends Command {
const ctx = canvas.getContext('2d');
drawImageWithTint(ctx, data, 'black', 0, 0, data.width, data.height);
greyscale(ctx, 0, 0, data.width, data.height);
ctx.drawImage(base, data.width / 2 - base.width / 2, data.height - base.height);
ctx.drawImage(base, (data.width / 2) - (base.width / 2), data.height - base.height);
ctx.font = `${Math.round(data.height / 25)}px Noto`;
ctx.fillStyle = 'white';
ctx.textAlign = 'center';