[Image-SIG] Font colour.
anewc2 at gmail.com
Thu Apr 26 12:22:28 CEST 2007
You find the complementary color by subtracting each color band from 255
(assuming 8-bit color). The problem with this is that if your original color
is medium gray, the complementary color will be very close to it and you
will get no legibility. So you have to test for this case and go to some
other color, perhaps black or white.
On 4/26/07, export at hope.cz <export at hope.cz> wrote:
> Christopher ,
> Thank you for your reply.
> Is there a way how to find out a complementary colour for an area where I
> will write the text, so
> that the text will be seen clearly?Is there a routine in PIL or in Python
> Thank you for help
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Image-SIG