Configuration options for trace lines that connect captcha characters.

Trace lines are drawn between character positions to add visual complexity and improve security by making it harder for OCR systems to isolate individual characters. These lines create visual noise while maintaining human readability.

Example: Basic Trace Configuration

const traceOptions: SetTraceOptions = {
color: 'red',
size: 3,
opacity: 0.8
};

captcha.setTrace(traceOptions);

Example: Subtle Trace Lines

const subtleTrace: SetTraceOptions = {
color: 'lightgray',
size: 2,
opacity: 0.4 // Very subtle
};
interface SetTraceOptions {
    color?: string;
    size?: number;
    opacity?: number;
}

Properties

Properties

color?: string

Line color (CSS color string, default: '#32cf7e')

size?: number

Line width in pixels (default: 3)

opacity?: number

Line opacity from 0 to 1 (default: 1)