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

    Interface SetDecoyOption

    Configuration interface for decoy characters that add security noise.

    const config: SetDecoyOption = {
    total: 30,
    opacity: 0.3,
    color: '#95a5a6'
    };
    interface SetDecoyOption {
        color?: string;
        font?: string;
        size?: number;
        opacity?: number;
        total?: number;
    }
    Index

    Properties

    color?: string

    Color of decoy characters

    font?: string

    Font family for decoy characters

    size?: number

    Font size of decoy characters in pixels

    opacity?: number

    Opacity of decoy characters (0.0 to 1.0)

    total?: number

    Total number of decoy characters to generate