JSPM

image-generators-level

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q37497F
  • License GPL-3.0-or-later

Armağan's Image Generators: LEVEL

Package Exports

  • image-generators-level

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (image-generators-level) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Image Generators: Level

Armağan's Image Generators: Level

Preview

  • Automatically blurs the background image.

  • Fast: Small (350x132) and async.

  • Default preview
    Default Preview

  • Accent color based on avatar image
    Image changes accent color

  • Custom background image
    Custom background image

Basic Usage

const drawLevelImage = require("image-generators-level");

(async ()=>{

  let image = await drawLevelImage({
  // backgroundSource: |
  //  "<image url>",   | Optional
    avatarSource: 
      message.author.avatarURL(), // string
  
    username: 
      message.author.tag, // string

    xpMax: 
      db.get(`xpMax.${message.author.id}`), // number

    xpCurrent: 
      db.get(`xpCurrent.${message.author.id}`), // number

    currentLevel: 
      db.get(`currentLevel.${message.author.id}`), // number
  });

  message.channel.send(new MessageAttachment(image, "igl.png"));
})();

Created by Kıraç Armağan Önal