-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
440 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
package captcha | ||
|
||
const ( | ||
characters string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" | ||
mathMinDefault uint8 = 1 | ||
mathMaxDefault uint16 = 9 | ||
widthDefault uint16 = 150 | ||
heightDefault uint16 = 50 | ||
noiseDefault uint8 = 1 | ||
sizeDefault uint8 = 4 | ||
fontSizeDefault uint8 = 12 | ||
ratioFontSize uint8 = 4 | ||
noiseGreyColorMinDefault uint8 = 1 | ||
noiseGreyColorMaxDefault uint8 = 9 | ||
noiseGreyColorMinInverse uint8 = 7 | ||
noiseGreyColorMaxInverse uint8 = 15 | ||
paddingHorizontalDefault uint8 = 5 | ||
fillColorMinDefault uint8 = 0 | ||
fillColorMaxDefault uint8 = 4 | ||
fillColorMinInverse uint8 = 10 | ||
fillColorMaxInverse uint8 = 14 | ||
regexColor string = "^#(?:[0-9a-fA-F]{3}){1,2}$" | ||
characters string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" | ||
|
||
fontSizeDefault uint8 = 16 | ||
ratioFontSize uint8 = 8 | ||
|
||
mathMinDefault uint8 = 1 | ||
mathMaxDefault uint16 = 9 | ||
|
||
noiseRadius uint8 = 1 | ||
|
||
widthDefault uint16 = 150 | ||
heightDefault uint16 = 50 | ||
|
||
sizeDefault uint8 = 4 | ||
|
||
curveDefault uint8 = 1 | ||
curveGreyColorMinDefault uint8 = 1 | ||
curveGreyColorMaxDefault uint8 = 9 | ||
curveGreyColorMinInverse uint8 = 7 | ||
curveGreyColorMaxInverse uint8 = 15 | ||
|
||
paddingHorizontalDefault uint8 = 5 | ||
|
||
fillColorMinDefault uint8 = 0 | ||
fillColorMaxDefault uint8 = 4 | ||
fillColorMinInverse uint8 = 10 | ||
fillColorMaxInverse uint8 = 14 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.