Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.54 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.54 KB

Canvabase

Canvabase is a simple and easy-to-use yet powerful image manipulation library. Canvabase is built on top of @napi-rs/canvas to ensure fast image-building speeds. Check out my other projects here

install size Downloads CodeFactor

Installation

Installing Canvabase

$ npm install canvabase

Usage

const canvabase = require("canvabase");

const welcomer = new canvabase.Welcomer()
  .setName("Dominik")
  .setTitle("Welcome!")
  //.addBackgrounds(["https://wallpapercave.com/wp/wp5128415.jpg", "https://wallpapercave.com/wp/wp11735586.jpg"])
  .addBackground("https://wallpapercave.com/wp/wp5128415.jpg")
  .setAvatar(
    "https://cdn.discordapp.com/avatars/347077478726238228/3b77f755fa8e66fd75d1e2d3fb8b1611.png?size=512",
    "rounded"
  )
  .setPosition("left")
  .setColor("#ffff");

welcomer.build().then((img) => {
  canvabase.write("./test/welcomercard.png", img);
});

Output

WelcomeCard

Features

  • Object Oriented
  • Fully documented
  • Unique Features
  • Easy to customize
  • Utilizes @napi-rs/canvas