captcha-canvas API Documentation - v3.3.4
    Preparing search index...

    Variable defaultDecoyOptionsConst

    defaultDecoyOptions: SetDecoyOption = ...

    Default configuration for decoy characters that add security noise.

    Decoy characters are fake letters scattered around the CAPTCHA to confuse OCR systems. These defaults create subtle noise that doesn't interfere with human readability while significantly increasing security.

    const captcha = new CaptchaGenerator()
    .setCaptcha({ text: 'HELLO' })
    .setDecoy({}); // Uses all defaults, total calculated automatically
    const captcha = new CaptchaGenerator()
    .setDecoy({
    ...defaultDecoyOptions,
    total: 50, // More decoys for higher security
    opacity: 0.3 // More subtle appearance
    });