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, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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.

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to