captcha

package
v1.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Captcha

type Captcha interface {
	NewCaptchaImage() (img string, err error)

	ClearImage()
	DrawHollowLine()
	DrawSineLine()
	DrawLine(num int)
	DrawBeeline(point1 Point, point2 Point, lineColor color.RGBA)
	DrawBorder(borderColor color.RGBA)
	DrawNoise(complex CaptchaComplex)
	DrawTextNoise(complex CaptchaComplex)
	DrawText(text string)
	SaveImage() (img string)
}

type CaptchaComplex

type CaptchaComplex int

type Point

type Point struct {
	X int
	Y int
}

func NewPoint

func NewPoint(x int, y int) *Point

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL