Skip to content

flazepe/node-canvas-with-twemoji-and-discord-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-canvas-with-twemoji-and-discord-emoji

A fork of node-canvas-with-twemoji by cagpie with Discord emoji support.

Installation

$ npm install node-canvas-with-twemoji-and-discord-emoji

npm

Quick Example

const { createCanvas } = require("canvas");
const { fillTextWithTwemoji } = require("node-canvas-with-twemoji-and-discord-emoji");

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

	ctx.fillStyle = "#000000";
	ctx.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 [email protected]

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

About

A fork of node-canvas-with-twemoji with Discord emoji support.

Resources

License

Stars

Watchers

Forks