On this page
  1. colorsys.yiq_to_rgb
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

colorsys.yiq_to_rgb

Prev: colorsys.rgb_to_yiq | Up: colorsys
Rel: colorsys.hls_to_rgb, colorsys.hsv_to_rgb, colorsys.rgb_to_hls, colorsys.rgb_to_hsv
Ref: docs.python.org — colorsys.yiq_to_rgb
Tags: #public #python3 #stdlib #colorsys


Import

import colorsys
from colorsys import yiq_to_rgb

Signature & Overview

colorsys.yiq_to_rgb(y, i, q)

colorsys.yiq_to_rgb() function.

Usage

import colorsys

r, g, b = colorsys.yiq_to_rgb(1.0, 0.0, 0.0)
assert (round(r, 2), round(g, 2), round(b, 2)) == (1.0, 1.0, 1.0)

Gotchas

REPL Inspect

from colorsys import yiq_to_rgb
help(yiq_to_rgb)

Linked from

Related notes