Configuration interface for the simple createCaptcha functions.
const options: CreateCaptchaOptions = { captcha: { text: 'HELLO', size: 50 }, trace: { color: '#95a5a6', size: 3 }, decoy: { total: 25, opacity: 0.3 }, background: backgroundImage}; Copy
const options: CreateCaptchaOptions = { captcha: { text: 'HELLO', size: 50 }, trace: { color: '#95a5a6', size: 3 }, decoy: { total: 25, opacity: 0.3 }, background: backgroundImage};
Optional
CAPTCHA text configuration (single or array for multi-styled text)
Trace line configuration
Decoy characters configuration
Pre-loaded background image
Configuration interface for the simple createCaptcha functions.
Example: Complete configuration