captcha3d

Generate 3D text on canvas

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
captcha3d
1.1.23 months ago4 months agoMinified + gzip package size for captcha3d in KB

Readme

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