Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

createSusImage

FuntyGithub edited this page Apr 19, 2022 · 1 revision

This function is using canvas to make a sus image.

function arguments:

All arguments except the imageURL are optional but they can personalize the result!

Example:

const image = await createSusImage(message.author.displayAvatarURL({format: 'png'}), size = {x: 128, y: 71});

function arguments:

imageURL

Name: imageURL
Type: String
Description: URL of the image that should be turned into these eyes.

size

Name: size
Type: Object
Default: {x: 128, y: 71}

Sub-Option Type Description Default (value if you don't give any)
x Number the width of the image, specified in pixels 128
y Number the height of the image, specified in pixels 71

bgColor

Name: bgColor
Type: String
Description: The background color of the image.
Default: #000000 (that means transparent)

Clone this wiki locally