mirror of
https://github.com/lepture/captcha.git
synced 2026-03-13 09:43:22 +08:00
@@ -222,7 +222,7 @@ class ImageCaptcha(_Captcha):
|
||||
:param chars: text to be generated.
|
||||
"""
|
||||
background = random_color(238, 255)
|
||||
color = random_color(0, 200, random.randint(220, 255))
|
||||
color = random_color(10, 200, random.randint(220, 255))
|
||||
im = self.create_captcha_image(chars, color, background)
|
||||
self.create_noise_dots(im, color)
|
||||
self.create_noise_curve(im, color)
|
||||
|
||||
Reference in New Issue
Block a user