Const
Default configuration for trace lines connecting CAPTCHA characters.
Trace lines provide additional security by making character segmentation more difficult for automated systems. These defaults create visible but not overwhelming connecting lines.
const captcha = new CaptchaGenerator() .setCaptcha({ text: 'HELLO' }) .setTrace({}); // Uses all defaults Copy
const captcha = new CaptchaGenerator() .setCaptcha({ text: 'HELLO' }) .setTrace({}); // Uses all defaults
const captcha = new CaptchaGenerator() .setTrace({ ...defaultTraceOptions, color: '#95a5a6', // Different color opacity: 0.7 // More subtle }); Copy
const captcha = new CaptchaGenerator() .setTrace({ ...defaultTraceOptions, color: '#95a5a6', // Different color opacity: 0.7 // More subtle });
Default configuration for trace lines connecting CAPTCHA characters.
Trace lines provide additional security by making character segmentation more difficult for automated systems. These defaults create visible but not overwhelming connecting lines.