@socialsplash/skia-canvas-twemoji
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@socialsplash/skia-canvas-twemoji

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

Quick Example

const { Canvas, loadImage } = require('skia-canvas');
const { fillTextWithTwemoji } = require('@socialsplash/skia-canvas-twemoji');

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 🎀', 100, 100, {
        loadImage
    });
}

main();

Dependencies

Licence

skia-canvas-twemoji

Copyright (c) 2020-2021 cagpie / Shun Kobayashi, Polestar Labs, SocialSplash 2022

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

Package Sidebar

Install

npm i @socialsplash/skia-canvas-twemoji

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

30.9 kB

Total Files

13

Last publish

Collaborators

  • williamdasilva