On this page
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
- Clamps output channels to
[0.0, 1.0]for out-of-gamut YIQ triples.
REPL Inspect
from colorsys import yiq_to_rgb
help(yiq_to_rgb)
Linked from
Related notes
- tuts/python3/stdlib_module/colorsys/rgb_to_yiq Linked here; links to this page; shared tags: #colorsys, #stdlib
- tuts/python3/stdlib_module/colorsys Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/colorsys/hls_to_rgb Linked here; shared tags: #colorsys, #stdlib
- tuts/python3/stdlib_module/colorsys/hsv_to_rgb Linked here; shared tags: #colorsys, #stdlib
- tuts/python3/stdlib_module/colorsys/rgb_to_hls Linked here; shared tags: #colorsys, #stdlib
- tuts/python3/stdlib_module/colorsys/rgb_to_hsv Linked here; shared tags: #colorsys, #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib