1.0.2 • Published 5 months ago

fscv v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

ForgeCanvas

Easy to use canvas for forge. (FSCV stands for ForgeScript-Canvas)

How to use

Install this as a npm package:

npm i fscv

Now, in your client initialization:

const { FSCV } = require("fscv")

// Import as an extension on your client
const client = new ForgeClient({
    ...options, // The options you currently have
    extensions: [
        new FSCV({
          fonts: ['path/to/custom/fonts.ttf'] // optional
        })
    ]
})

And voi-la, you now have canvas functions loaded to your bot.

Functions

Here are some functions included in this extension.

You can find documentation in /docs/ folder or use require("fscv").generateDocs()

Changelogs

1.0.2

  • Adapted to use Return."method"() to this."method"();
  • Added new functions:
    • $cloneCanvas

1.0.1

  • Added new functions:
    • $measureText
    • $canvasWidth
    • $canvasHeight
    • $canvasFilter
    • $setCanvasFilter
    • $clearCanvasFilter
1.0.2

5 months ago

1.0.1

6 months ago

1.0.0

7 months ago