Versions in this module Expand all Collapse all v1 v1.0.0 May 30, 2023 Changes in this version + func LoadFont(fontData []byte) (err error) + func LoadFontFromReader(reader io.Reader) error + type Captcha struct + Text string + func New(width int, height int, option ...SetOption) (*Captcha, error) + func NewCustomGenerator(width int, height int, generator func() (anwser string, question string), ...) (*Captcha, error) + func NewMathExpr(width int, height int, option ...SetOption) (*Captcha, error) + func (c *Captcha) WriteGIF(w io.Writer, o *gif.Options) error + func (c *Captcha) WriteImage(w io.Writer) error + func (c *Captcha) WriteJPG(w io.Writer, o *jpeg.Options) error + type Options struct + BackgroundColor color.Color + CharPreset string + CurveNumber int + FontDPI float64 + FontScale float64 + Noise float64 + Palette color.Palette + TextLength int + type SetOption func(*Options)