captcha3d

1.1.2 • Public • Published

Installation:

npm install

Dependencies:

canvas

Usage:

captcha3D({
    text: '123'
}).generate().then(frames => console.log(frames));

Options:

chars: '01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefjhijklmnopqrstuvwxyz', // chars for generation
count: 4, // chars count

text: { // text options
  font: '26px Monospace',
  x: 0,
  y: 22
},

hypot: 8, // polygons
xWidth: 140, // polygons * pixels
yHeight: 50, // polygons * pixels
yOffset: +5, // x position of board
xOffset: -5, // y position of board
zAngle: 0.158248290464, // rotation angle of board
frames: 10 // frames count

Readme

Keywords

none

Package Sidebar

Install

npm i captcha3d

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

8.63 kB

Total Files

4

Last publish

Collaborators

  • lev7n