skia-canvas-with-twemoji-and-discord-emoji
v1.0.1
Published
A fork of node-canvas-with-twemoji for skia-canvas with Discord emoji support.
Downloads
1
Readme
skia-canvas-with-twemoji-and-discord-emoji
A fork of node-canvas-with-twemoji for skia-canvas with Discord emoji support. This is a module that is able to draw emoji on skia-canvas.
Installation
$ npm install skia-canvas-with-twemoji-and-discord-emoji
Quick Example
const { Canvas } = require('skia-canvas');
const { fillTextWithTwemoji } = require('skia-canvas-with-twemoji-and-discord-emoji');
async function main () {
const canvas = new Canvas(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
License
skia-canvas-with-twemoji
Copyright (c) 2020-2021 cagpie / Shun Kobayashi [email protected]
Code licensed under the MIT License: http://opensource.org/licenses/MIT