Closed d-fal closed 5 years ago
There's no such setting. But since it's transparent, why not set the background color of a div under the image in CSS?
Goo idea, Is there any restrictions on the range of foreground colors? I want to make sure about generating discriminating captcha from its background?
The foreground colors are in the range 0-128 https://github.com/dchest/captcha/blob/master/image.go#L74-L79
so the lightest color would be 128, 128, 128.
(To be fair, I don't see any reason for it to be random, as it won't help with security. Not sure why I made it so.)
I feel better if you limit the range or use single color.
I should do this in the next version, yes. For now, feel free to fork it and change the lines that I linked to above.
Thank you so much
Hi everybody,
I was wondering how one can change background color to something other than transparent.