๐ฏCanvacard
Classes
Functions
trigger(image) โ Promise.<Buffer>
Trigger an image
invert(image) โ Promise.<Buffer>
Invert an image
sepia(image) โ Promise.<Buffer>
Sepia an image
greyscale(image) โ Promise.<Buffer>
Greyscale an image
brightness(image, amount) โ Promise.<Buffer>
Edit the brightness of the image
darkness(image, amount) โ Promise.<Buffer>
Darken an image
threshold(image, amount) โ Promise.<Buffer>
convolute(image, matrix, opaque) โ Promise.<Buffer>
Convolute an image
pixelate(image, pixels) โ Promise.<Buffer>
Pixelate an image
sharpen(image, lvl) โ Promise.<Buffer>
Sharpen an image
burn(image, lvl) โ Promise.<Buffer>
Burn an image
circle(image) โ Promise.<Buffer>
Circle an image
fuse(image1, image2) โ Promise.<Buffer>
Fuse two images
resize(image, width, height) โ Promise.<Buffer>
Resize an image
kiss(image1, image2) โ Promise.<Buffer>
Kiss someone ( อกยฐ อส อกยฐ)
spank(image1, image2) โ Promise.<Buffer>
To spank someone ( อกยฐ อส อกยฐ)
slap(image1, image2) โ Promise.<Buffer>
Slap someone ( อกยฐ อส อกยฐ)
facepalm(image) โ Promise.<Buffer>
Facepalm someone
colorfy(image, color) โ Promise.<Buffer>
Colorfy an image
distracted(image1, image2, image3) โ Promise.<Buffer>
Distract someone
jail(image, greyscale) โ Promise.<Buffer>
Create a jail image
bed(image1, image2) โ Promise.<Buffer>
Create a bed image
delete(image, dark) โ Promise.<Buffer>
Create a deleted image
gradient(colorFrom, colorTo, width, height) โ Promise.<Buffer>
Create a gradient image
quote(options, [font]) โ Promise.<Buffer>
Create a fake quote image
phub(options, [font]) โ Promise.<Buffer>
PornHub Comment
wanted(image) โ Promise.<Buffer>
Create a "wanted" image
wasted(image) โ Promise.<Buffer>
Create a "wasted" image
youtube(ops) โ Promise.<Buffer>
Create a YouTube comment image
write(data, name) โ void
Writes data as a file
reply(options) โ Promise.<Buffer>
Discord Reply Clone
Canvacard
Kind: global class
new Canvacard()
Image generator
Example
trigger(image) โ Promise.<Buffer>
Promise.<Buffer>
Trigger an image
Kind: global function
Returns: Promise.<Buffer>
- Triggered image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to trigger |
Example
invert(image) โ Promise.<Buffer>
Promise.<Buffer>
Invert an image
Kind: global function
Returns: Promise.<Buffer>
- Inverted image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to invert |
Example
sepia(image) โ Promise.<Buffer>
Promise.<Buffer>
Sepia an image
Kind: global function
Returns: Promise.<Buffer>
- Sepia image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to sepia |
Example
greyscale(image) โ Promise.<Buffer>
Promise.<Buffer>
Greyscale an image
Kind: global function
Returns: Promise.<Buffer>
- Greyscale image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to greyscale |
Example
brightness(image, amount) โ Promise.<Buffer>
Promise.<Buffer>
Edit the brightness of the image
Kind: global function
Returns: Promise.<Buffer>
- Brightened image
Throws:
APIError
If image is not provided o la cantidad no es un nรบmero
Param | Type | Description |
---|---|---|
image |
| Image to brighten |
amount |
| Amount of brightness |
Example
darkness(image, amount) โ Promise.<Buffer>
Promise.<Buffer>
Darken an image
Kind: global function
Returns: Promise.<Buffer>
- Darkened image
Throws:
APIError
If image is not provided o la cantidad no es un nรบmero
Param | Type | Description |
---|---|---|
image |
| Image to darken |
amount |
| Amount of darkness |
Example
threshold(image, amount) โ Promise.<Buffer>
Promise.<Buffer>
Kind: global function
Returns: Promise.<Buffer>
- Thresholded image
Throws:
APIError
If image is not provided o la cantidad no es un nรบmero
Descrioption: Threshold an image
Param | Type | Description |
---|---|---|
image |
| Image to threshold |
amount |
| Amount of threshold |
Example
convolute(image, matrix, opaque) โ Promise.<Buffer>
Promise.<Buffer>
Convolute an image
Kind: global function
Returns: Promise.<Buffer>
- Convoluted image
Throws:
APIError
If image is not provided o la matriz no es un Array
Param | Type | Description |
---|---|---|
image |
| Image to convolute |
matrix |
| Convolution matrix |
opaque |
| If the image should be opaque |
Example
pixelate(image, pixels) โ Promise.<Buffer>
Promise.<Buffer>
Pixelate an image
Kind: global function
Returns: Promise.<Buffer>
- Pixelated image
Throws:
APIError
If image is not provided o los pรญxeles no son un nรบmero
Param | Type | Description |
---|---|---|
image |
| Image to pixelate |
pixels |
| Amount of pixels |
Example
burn(image, lvl) โ Promise.<Buffer>
Promise.<Buffer>
Burn an image
Kind: global function
Returns: Promise.<Buffer>
- Burned image
Throws:
APIError
If image is not provided o el nivel no es un nรบmero
Param | Type | Description |
---|---|---|
image |
| Image to burn |
lvl |
| Level of burning |
Example
circle(image) โ Promise.<Buffer>
Promise.<Buffer>
Circle an image
Kind: global function
Returns: Promise.<Buffer>
- Circled image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to circle |
Example
fuse(image1, image2) โ Promise.<Buffer>
Promise.<Buffer>
Fuse two images
Kind: global function
Returns: Promise.<Buffer>
- Fused image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image1 |
| First image |
image2 |
| Second image |
Example
resize(image, width, height) โ Promise.<Buffer>
Promise.<Buffer>
Resize an image
Kind: global function
Returns: Promise.<Buffer>
- Resized image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to resize |
width |
| Width |
height |
| Height |
Example
kiss(image1, image2) โ Promise.<Buffer>
Promise.<Buffer>
Kiss someone ( อกยฐ อส อกยฐ)
Kind: global function
Returns: Promise.<Buffer>
- Imagen de beso
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image1 |
| First image |
image2 |
| Second image |
Example
spank(image1, image2) โ Promise.<Buffer>
Promise.<Buffer>
To spank someone ( อกยฐ อส อกยฐ)
Kind: global function
Returns: Promise.<Buffer>
- Image of spank
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image1 |
| First image |
image2 |
| Second image |
Example
slap(image1, image2) โ Promise.<Buffer>
Promise.<Buffer>
Slap someone ( อกยฐ อส อกยฐ)
Kind: global function
Returns: Promise.<Buffer>
- Image of slap
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image1 |
| First image |
image2 |
| Second image |
Example
facepalm(image) โ Promise.<Buffer>
Promise.<Buffer>
Facepalm someone
Kind: global function
Returns: Promise.<Buffer>
- Image of facepalm
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to facepalm |
Example
colorfy(image, color) โ Promise.<Buffer>
Promise.<Buffer>
Colorfy an image
Kind: global function
Returns: Promise.<Buffer>
- Colorfied image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to colorfy |
color |
| Color to apply to the image (hex) |
Example
distracted(image1, image2, image3) โ Promise.<Buffer>
Promise.<Buffer>
Distract someone
Kind: global function
Returns: Promise.<Buffer>
- Distracted image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image1 |
| Face for the girl in red. |
image2 |
| Face for the boy. |
image3 |
| Face for the other girl [optional] |
Example
jail(image, greyscale) โ Promise.<Buffer>
Promise.<Buffer>
Create a jail image
Kind: global function
Returns: Promise.<Buffer>
- Jailed image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to jail |
greyscale |
| If the image should be greyscale |
Example
bed(image1, image2) โ Promise.<Buffer>
Promise.<Buffer>
Create a bed image
Kind: global function
Returns: Promise.<Buffer>
- Imagen de cama
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image1 |
| First image |
image2 |
| Second image |
Example
delete(image, dark) โ Promise.<Buffer>
Promise.<Buffer>
Create a deleted image
Kind: global function
Returns: Promise.<Buffer>
- Deleted image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to delete |
dark |
| If the image should be dark |
Example
gradient(colorFrom, colorTo, width, height) โ Promise.<Buffer>
Promise.<Buffer>
Create a gradient image
Kind: global function
Returns: Promise.<Buffer>
- Gradient image
Throws:
APIError
If colorFrom or colorTo is not provided
Param | Type | Description |
---|---|---|
colorFrom |
| First color |
colorTo |
| Second color |
width |
| Width of image |
height |
| Height of image |
Example
quote(options, [font]) โ Promise.<Buffer>
Promise.<Buffer>
Create a fake quote image
Kind: global function
Returns: Promise.<Buffer>
- Quote image
Param | Type | Default | Description |
---|---|---|---|
options |
| Options | |
[options.image] |
| Image | |
[options.message] |
| Message | |
[options.username] |
| Username | |
[options.color] |
| Color | |
[font] |
|
| Text font for the card |
Example
phub(options, [font]) โ Promise.<Buffer>
Promise.<Buffer>
PornHub Comment
Kind: global function
Returns: Promise.<Buffer>
- PornHub Comment image
Throws:
APIError
If username, message or image is not provided
Param | Type | Default | Description |
---|---|---|---|
options |
| Options | |
[options.username] |
| Username | |
[options.message] |
| Message | |
[options.image] |
| Image | |
[font] |
|
| Text font for card |
Example
wanted(image) โ Promise.<Buffer>
Promise.<Buffer>
Create a "wanted" image
Kind: global function
Returns: Promise.<Buffer>
- Wanted image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to wanted |
Example
wasted(image) โ Promise.<Buffer>
Promise.<Buffer>
Create a "wasted" image
Kind: global function
Returns: Promise.<Buffer>
- Wasted image
Throws:
APIError
If image is not provided
Param | Type | Description |
---|---|---|
image |
| Image to wasted |
Example
youtube(ops) โ Promise.<Buffer>
Promise.<Buffer>
Create a YouTube comment image
Kind: global function
Returns: Promise.<Buffer>
- YouTube comment image
Throws:
APIError
If username, content or avatar is not provided
Param | Type | Default | Description |
---|---|---|---|
ops |
| Options | |
[ops.username] |
| Username | |
[ops.content] |
| Content | |
[ops.avatar] |
| Avatar | |
[ops.dark] |
|
| Dark mode |
Example
write(data, name) โ void
void
Writes data as a file
Kind: global function
Param | Type | Description |
---|---|---|
data |
| data to write |
name |
| file name |
reply(options) โ Promise.<Buffer>
Promise.<Buffer>
Discord Reply Clone
Kind: global function
Returns: Promise.<Buffer>
- Reply image
Throws:
APIError
If the avatar, username or message is not provided
Param | Type | Description |
---|---|---|
options |
| Options |
[options.avatar1] |
| Avatar of the person who responded |
[options.avatar2] |
| Avatar of the other person |
[options.user1] |
| Username of the person who responded |
[options.user2] |
| Username of the other person |
[options.hex1] |
| Hexadecimal color of the person who responded |
[options.hex2] |
| Hexadecimal color of the other person |
[options.mainText] |
| Message of the person who responded |
[options.replyText] |
| Message of the other person |
Example
Last updated