mirror of
https://github.com/lepture/captcha.git
synced 2026-03-13 09:43:22 +08:00
PIL compatibility (#18)
This commit is contained in:
committed by
Hsiaoming Yang
parent
30466c60cc
commit
54dd2834ba
@@ -131,7 +131,7 @@ class ImageCaptcha(_Captcha):
|
||||
x2 = random.randint(w - int(w / 5), w)
|
||||
y1 = random.randint(int(h / 5), h - int(h / 5))
|
||||
y2 = random.randint(y1, h - int(h / 5))
|
||||
points = [(x1, y1), (x2, y2)]
|
||||
points = [x1, y1, x2, y2]
|
||||
end = random.randint(160, 200)
|
||||
start = random.randint(0, 20)
|
||||
Draw(image).arc(points, start, end, fill=color)
|
||||
|
||||
Reference in New Issue
Block a user