1.0.1 • Published 5 years ago

@lexidum/type-and-draw v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

Text and drawing tool

An experiment working with node.js and canvas.

Try by installing:

npm install @lexidum/type-and-draw

Example usage:

const textImage = require("./index").textImage;
const path = require("path");
textImage(
  path.join(__dirname, "result.png"),
  {
    startX: 20,
    startY: 40,
    letterWidth: 30,
    letterHeight: 30,
    imageWidth: 600,
    imageHeight: 600,
    bg: "black",
    textColor: "white",
  },
  "this is a sample text"
);
1.0.1

5 years ago

1.0.0

5 years ago