all repos — captcha @ fe4a5975321d8c948221aa46f8a7af6355db0612

Go package captcha implements generation and verification of image and audio CAPTCHAs.

Thinner strike-through on captcha image.
Dmitry Chestnykh dmitry@codingrobots.com
Mon, 25 Apr 2011 12:26:12 +0200
commit

fe4a5975321d8c948221aa46f8a7af6355db0612

parent

8a2b5ae5df96f92bcc8bbf57acc7381b5116edde

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M image.goimage.go

@@ -150,7 +150,7 @@ maxx := img.Bounds().Max.X

maxy := img.Bounds().Max.Y y := rnd(maxy/3, maxy-maxy/3) for x := 0; x < maxx; x += r { - r = rnd(1, img.dotSize/2-1) + r = rnd(1, img.dotSize/3) y += rnd(-img.dotSize/2, img.dotSize/2) if y <= 0 || y >= maxy { y = rnd(maxy/3, maxy-maxy/3)