util-canvas
v1.0.0
Published
A fork of util-canvas with Discord emoji support.
Downloads
5
Readme
Installation
$ npm install util-canvas
Quick Example
const { createCanvas } = require('@napi-rs/canvas');
const { fillTextWithTwemoji } = require('util-canvas');
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();