Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Alpha represents the distance from the intersection points of the circle // with the inner rectangle to the outer rectangle. Alpha = 1.8 )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(m *PuzzleMask)
func WithMaskType ¶
func WithMaskType(masktype PuzzleMaskType) Option
func WithNotches ¶
type PuzzleCaptcha ¶
func NewPuzzleCaptcha ¶
func NewPuzzleCaptcha(origin image.Image, holesize, maxholes int) PuzzleCaptcha
type PuzzleMask ¶
type PuzzleMask struct { // binary number 0b0001 // These four bits respectively represent up, down, left, and right. Holes int // contains filtered or unexported fields }
func NewPuzzleMask ¶
func NewPuzzleMask(whole, hole image.Rectangle, options ...Option) *PuzzleMask
func (*PuzzleMask) Bounds ¶
func (m *PuzzleMask) Bounds() image.Rectangle
func (*PuzzleMask) ColorModel ¶
func (m *PuzzleMask) ColorModel() color.Model
Click to show internal directories.
Click to hide internal directories.