canvas-with-twemoji

1.0.0 • Public • Published

canvas-with-twemoji

Installation

$ npm install canvas-with-twemoji

npm

Usage Example

const { createCanvas } = require('canvas');
const { fillTextWithTwemoji } = require('canvas-with-twemoji');

async function main () {
    const canvas = createCanvas(200, 200);
    const context = canvas.getContext('2d');

    context.fillStyle = '#000000';
    context.font = '30px Arial';
    await fillTextWithTwemoji(context, 'emoji 🙂', 100, 100);
}

main();

Package Sidebar

Install

npm i canvas-with-twemoji

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

6.85 kB

Total Files

10

Last publish

Collaborators

  • 4stha