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