Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I generate a Blue fonts #30

Open
yangbisheng2009 opened this issue Mar 18, 2018 · 2 comments
Open

how can I generate a Blue fonts #30

yangbisheng2009 opened this issue Mar 18, 2018 · 2 comments

Comments

@yangbisheng2009
Copy link

yangbisheng2009 commented Mar 18, 2018

        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

@quancore
Copy link

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

@ghost
Copy link

ghost commented Jul 30, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants