shitpost-generator

1.2.0 • Public • Published

shitpost-generator

A Node.JS module to create images with overlays

Installation

npm install shitpost-generator

Example

npm run example or node example

Check output in ./example/out/result.png

Points

  • The image need points in which it will follow to draw on top of the background
  • Each Box object have a points parameter which is an Array of arrays

points

For example, yellow, you need to provide X and Y of it:

new Box([
    [yellow.x, yellow.y], [red.x, red.y], // here you provide the rest of the points
    [blue.x, blue.y], [green.x, green.y]              // for each point of the box
])

You can provide multiple boxes if your template needs more than one image

Templates

You can find templates in the ShitpostBot 5000's website, aswell as overlays.

Dependents (0)

Package Sidebar

Install

npm i shitpost-generator

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

756 kB

Total Files

15

Last publish

Collaborators

  • nirewen