A fork of node-canvas-with-twemoji-and-discord-emoji
$ npm install @miq4d/canvas-with-discord-content
const { createCanvas } = require('canvas');
const { fillTextWithTwemoji } = require('@miq4d/canvas-with-discord-content');
async function main () {
const canvas = createCanvas(200, 200);
const context = canvas.getContext('2d');
context.fillStyle = '#000000';
context.font = '30px Arial';
await fillTextWithTwemoji(context, 'emoji 😉 discord emoji <:id:name>', 100, 100);
}
main();
Copyright (c) 2020-2021 cagpie / Shun Kobayashi [email protected]
Code licensed under the MIT License: http://opensource.org/licenses/MIT