Versions in this module Expand all Collapse all v1 v1.10.2 Jun 26, 2023 Changes in this version + const CaptchaComplexHigh + const CaptchaComplexLower + const CaptchaComplexMedium + func ColorToRGB(colorVal int) color.RGBA + func NewApplication() captcha.Captcha + func RandFontFamily() (*truetype.Font, error) + func RandLightColor() color.RGBA + func RandText(num int) string + func Random(min int64, max int64) float64 + func ReadFonts(dirPth string, suffix string) (err error) + func SetFontFamily(fontPath ...string) + type Application struct + type CaptchaImage struct + Complex int + Error error + func NewCaptcha() *CaptchaImage + func (_captcha *CaptchaImage) DrawLine(num int) + func (captcha *CaptchaImage) ClearImage() + func (captcha *CaptchaImage) DrawBeeline(point1 captcha.Point, point2 captcha.Point, lineColor color.RGBA) + func (captcha *CaptchaImage) DrawBorder(borderColor color.RGBA) + func (captcha *CaptchaImage) DrawHollowLine() + func (captcha *CaptchaImage) DrawNoise(complex captcha.CaptchaComplex) + func (captcha *CaptchaImage) DrawSineLine() + func (captcha *CaptchaImage) DrawText(text string) + func (captcha *CaptchaImage) DrawTextNoise(complex captcha.CaptchaComplex) + func (captcha *CaptchaImage) NewCaptchaImage() (img string, err error) + func (captcha *CaptchaImage) SaveImage() (img string) + type ImageFormat int + const ImageFormatGif + const ImageFormatJpeg + const ImageFormatPng + type ServiceProvider struct + func (captcha *ServiceProvider) Boot() + func (captcha *ServiceProvider) Register()