Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

It is correct. Colorspaces for RGB an YIQ are different. Not all RGB colors can 
be represented in YIQ and vice versa. For YIQ color (0, 1, 0) you need RGB 
color (0.9468822170900693, -0.27478764629897834, -1.1085450346420322), but the 
G and B components are out of the range [0, 1]. So yiq_to_rgb() returns the 
closes RGB color to the original code, and it is (0.9468822170900693, 0, 0). It 
is the best that you can get.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40668>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to