0.1.11 • Published 1 year ago

node-canvas-with-twemoji v0.1.11

Weekly downloads
328
License
MIT
Repository
github
Last release
1 year ago

node-canvas-with-twemoji

This is a module that is able to draw emoji on node-canvas.

Installation

$ npm install node-canvas-with-twemoji

npm

Quick Example

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

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

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

main();

image

Dependencies

Licence

node-canvas-with-twemoji

Copyright (c) 2020-2021 cagpie / Shun Kobayashi cagpie@gmail.com

Code licensed under the MIT License: http://opensource.org/licenses/MIT

0.1.10

1 year ago

0.1.11

1 year ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.1

4 years ago