Optional
charactersNumber of characters to generate (ignored if text is provided)
Optional
textCustom captcha text (auto-generated if not provided)
Optional
colorText color (CSS color string, default: '#32cf7e')
Optional
fontFont family name (default: 'Sans')
Optional
skewWhether to apply skewing transformation (default: true)
Optional
colorsArray of colors for random selection per character
Optional
rotateMaximum rotation angle in degrees (default: 5)
Optional
sizeFont size in pixels (default: 40)
Optional
opacityText opacity from 0 to 1 (default: 0.8)
Optional
startStart index for segmented text styling
Optional
endEnd index for segmented text styling
Configuration options for captcha text appearance and behavior.
This interface defines all the customization options available for the captcha text, including styling, positioning, and visual effects. It supports both single-style captchas and segmented captchas where different parts can have different styles.
Example: Basic Text Configuration
Example: Auto-generated Text
Example: Segmented Styling