jxr-canvas
v1.8.0
Published
Create canvas simple
Downloads
131
Maintainers
Readme
Installation
$ npm install jxr-canvas
const JXR = require("jxr-canvas");
how to use
const __path = process.cwd();
const JXR = require("jxr-canvas");
const fs = require('fs');
var image = await new JXR.Welcome()
.setUsername("Ronzz YT")
.setGuildName("JXR TEAM")
.setGuildIcon("https://telegra.ph/file/c955871434c96bd8f40dc.jpg")
.setMemberCount("379")
.setAvatar("https://telegra.ph/file/a23556f205dacb630e58d.jpg")
.setBackground("https://telegra.ph/file/c792631587035c6cd185e.jpg")
.toAttachment();
let data = image.toBuffer();
await fs.writeFileSync(__path +'/options/welcome.png', data)
Result
const __path = process.cwd()
const JXR = require("jxr-canvas");
const fs = require('fs');
var image = await new JXR.Welcome2()
.setAvatar("https://telegra.ph/file/a23556f205dacb630e58d.jpg")
.setUsername("Ronzz YT")
.setBg("https://telegra.ph/file/c792631587035c6cd185e.jpg")
setGroupname("JXR TEAM")
.setMember("379")
.toAttachment();
let data = image.toBuffer();
await fs.writeFileSync(__path +'/options/welcome2.png', data)
Result
const __path = process.cwd()
const JXR = require("jxr-canvas");
const fs = require('fs');
var image = await new JXR.Rank()
.setAvatar("https://telegra.ph/file/a23556f205dacb630e58d.jpg")
.setUsername("Ronzz YT")
.setBg("https://telegra.ph/file/c792631587035c6cd185e.jpg")
.setNeedxp("100")
.setCurrxp("50")
.setLevel("2")
.setRank("https://i.ibb.co/Wn9cvnv/FABLED.png")
.toAttachment();
let data = image.toBuffer();
await fs.writeFileSync(__path +'/options/rank.png', data)
Result
const __path = process.cwd()
const JXR = require("jxr-canvas");
const fs = require('fs');
var image = await new JXR.Up()
.setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
.toAttachment();
let data = image.toBuffer();
await fs.writeFileSync(__path +'/options/levelup.png', data)
Result
update
Horny
const __path = process.cwd()
const JXR = require("jxr-canvas");
const fs = require('fs');
var image = await new JXR.Horny()
.setAvatar("https://telegra.ph/file/a23556f205dacb630e58d.jpg")
.toBuild();
let data = image.toBuffer();
await fs.writeFileSync(__path +'/options/horny', data)
Result
Jojo
const __path = process.cwd()
const JXR = require("jxr-canvas");
const fs = require('fs');
var image = await new JXR.Jo()
.setImage("https://telegra.ph/file/a23556f205dacb630e58d.jpg")
.toBuild();
let data = image.toBuffer();
await fs.writeFileSync(__path +'/options/jojo.png', data)
Result
Patrick
const __path = process.cwd()
const JXR = require("jxr-canvas");
const fs = require('fs');
var image = await new JXR.Patrick()
.setAvatar("https://telegra.ph/file/a23556f205dacb630e58d.jpg")
.toAttachment();
let data = image.toBuffer();
await fs.writeFileSync(__path +'/options/pat.png', data)
Result
Bonk
const __path = process.cwd()
const JXR = require("jxr-canvas");
const fs = require('fs');
var image = await new JXR.Bonk()
.setAvatar1("https://telegra.ph/file/ed04d65c676a879b4d31b.png")
.setAvatar2("https://telegra.ph/file/a23556f205dacb630e58d.jpg")
.toBuild();
let data = image.toBuffer();
await fs.writeFileSync(__path +'/options/bonk.png', data)
Result
Spongebob Burn
const __path = process.cwd()
const JXR = require("jxr-canvas");
const fs = require('fs');
var image = await new JXR.Burn()
.setAvatar("https://telegra.ph/file/a23556f205dacb630e58d.jpg")
.toAttachment();
let data = image.toBuffer();
await fs.writeFileSync(__path +'/options/burn.png', data)