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

    Interface DrawCaptchaOption

    Configuration interface for CAPTCHA text drawing in the Captcha class. Similar to SetCaptchaOption but without the characters property for random generation.

    const config: DrawCaptchaOption = {
    text: 'SECURE',
    size: 60,
    rotate: 15,
    skew: true,
    colors: ['#e74c3c', '#f39c12']
    };
    interface DrawCaptchaOption {
        text?: string;
        color?: string;
        font?: string;
        skew?: boolean;
        colors?: string[];
        rotate?: number;
        size?: number;
        opacity?: number;
    }
    Index

    Properties

    text?: string

    Specific text to display

    color?: string

    Text color as hex code, RGB, or color name

    font?: string

    Font family name

    skew?: boolean

    Whether to apply random skewing transformation

    colors?: string[]

    Array of colors for multi-color text

    rotate?: number

    Maximum rotation angle in degrees

    size?: number

    Font size in pixels

    opacity?: number

    Text opacity (0.0 to 1.0)