[Image-SIG] Font colour.

Amos Newcombe 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.

Amos

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
> somewhere?
> Thank you for help
> Lad.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20070426/4a90db33/attachment.htm 


More information about the Image-SIG mailing list