beautiful-canvas

First of all 1.0 versions are test versions !

Usage no npm install needed!

<script type="module">
  import beautifulCanvas from 'https://cdn.skypack.dev/beautiful-canvas';
</script>

README

Beatiful-Canvas

First of all 1.0 versions are test versions !

How to use Beatiful-Canvas ?

First install the module

npm i beautiful-canvas

Some examples here:

const bcanvas = require('beautiful-canvas');

const canvas = bcanvas.createImage_modern(user, avatar, guild);

message.channel.send(canvas.toBuffer()); // .toBuffer() for png image - message.channel.send is from discord.js

"Modern" can be replaced with others, a list will be created with all.

This is used with Discord.js. Replace user by the username, avatar by the avatarurl of the user, guild by the guild name.