2.1.2 • Published 2 years ago

@miq4d/canvas-with-discord-content v2.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@miq4d/canvas-with-discord-content

A fork of node-canvas-with-twemoji-and-discord-emoji

Installation

$ npm install @miq4d/canvas-with-discord-content

npm

Quick Example

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();

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

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago