daniel-e / captcha

CAPTCHA library written in Rust.
MIT License
98 stars 18 forks source link

How to set the color of the font on the image. #1

Closed paulzhang5511 closed 3 years ago

paulzhang5511 commented 4 years ago

image

How to set the color of the font on the image.

daniel-e commented 4 years ago

At the moment this is not possible. It should not be a big issue and I will consider it for the future.

starccy commented 3 years ago

@daniel-e Would it will be better if we draw letters directly on images instead of putting letter pngs on them? There are already some functions in image crate to do it. Then we could have more flexibility in text operation such as change text color or use more fonts.

daniel-e commented 3 years ago

Just added the function set_color() where you can specify the RGB values of the color.