PIL compatibility (#18)

This commit is contained in:
Edward Medvedev
2017-07-13 03:26:52 +03:00
committed by Hsiaoming Yang
parent 30466c60cc
commit 54dd2834ba

View File

@@ -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)