captcha icon indicating copy to clipboard operation
captcha copied to clipboard

how can I generate a Blue fonts

Open yangbisheng2009 opened this issue 6 years ago • 2 comments

        background = (0, 0, 255)  # random_color(238, 255)
        color = (0, 0, 255, 255) # random_color(0, 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)
        im = im.filter(ImageFilter.SMOOTH)

When I set the 'color' Blue to 255(Red=0, Green=0), it seems that no use. The font is not blue. Would you like help me. Thank your very much

yangbisheng2009 avatar Mar 18 '18 08:03 yangbisheng2009

I have the same problem. I could not change the font color to black, please help!!!

quancore avatar Apr 26 '21 21:04 quancore

See my gist. You only need to remember that RGB of your favourite blue colour and put it in the code. gist I hope it solved your doubt.

ghost avatar Jul 30 '21 23:07 ghost