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

    Interface CreateCaptchaOptions

    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
    };
    interface CreateCaptchaOptions {
        captcha?: SetCaptchaOption | SetCaptchaOption[];
        trace?: SetTraceOption;
        decoy?: SetDecoyOption;
        background?: Image;
    }
    Index

    Properties

    CAPTCHA text configuration (single or array for multi-styled text)

    Trace line configuration

    Decoy characters configuration

    background?: Image

    Pre-loaded background image