def yiq_to_rgb(y, i=None, q=None):
if type(y) in [list,tuple]:<EOL><INDENT>y, i, q = y<EOL><DEDENT>r = y + (i * <NUM_LIT>) + (q * <NUM_LIT>)<EOL>g = y - (i * <NUM_LIT>) - (q * <NUM_LIT>)<EOL>b = y - (i * <NUM_LIT>) + (q * <NUM_LIT>)<EOL>return (r, g, b)<EOL>
Convert the color from YIQ coordinates to RGB.

    Parameters:
      :y:
        Tte Y component value [0...1]
      :i:
        The I component value [0...1]
      :q:
        The Q component value [0...1]

    Returns:
      The color as an (r, g, b) tuple in the range:
      r[0...1],
      g[0...1],
      b[0...1]

    >>> '({}, {}, {})'.format(*[round(v, 6) for v in yiq_to_rgb(0.592263, 0.458874, -0.0499818)])
    '(1.0, 0.5, 1e-06)'