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

    Variable defaultDrawCaptchaOptionConst

    defaultDrawCaptchaOption: DrawCaptchaOption = ...

    Default configuration for CAPTCHA text drawing operations.

    These defaults provide a good balance between security and readability, with moderate styling that makes the text challenging for OCR while remaining accessible to humans.

    const captcha = new Captcha(300, 100);
    captcha.drawCaptcha(); // Uses all default values
    const captcha = new Captcha(300, 100);
    captcha.drawCaptcha({
    ...defaultDrawCaptchaOption,
    text: 'CUSTOM',
    size: 60
    });