Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Functions | |
def | rgb_to_yiq |
def | yiq_to_rgb |
def | rgb_to_hls |
def | hls_to_rgb |
def | rgb_to_hsv |
def | hsv_to_rgb |
Variables | |
list | __all__ |
float | ONE_THIRD = 1.0 |
float | ONE_SIXTH = 1.0 |
float | TWO_THIRD = 2.0 |
Conversion functions between RGB and other color systems. This modules provides two functions for each color system ABC: rgb_to_abc(r, g, b) --> a, b, c abc_to_rgb(a, b, c) --> r, g, b All inputs and outputs are triples of floats in the range [0.0...1.0]. Inputs outside this range may cause exceptions or invalid outputs. Supported color systems: RGB: Red, Green, Blue components YIQ: used by composite video signals HLS: Hue, Luminance, Saturation HSV: Hue, Saturation, Value
def colorsys.hls_to_rgb | ( | h, | |
l, | |||
s | |||
) |
Definition at line 75 of file colorsys.py.
def colorsys.hsv_to_rgb | ( | h, | |
s, | |||
v | |||
) |
Definition at line 110 of file colorsys.py.
def colorsys.rgb_to_hls | ( | r, | |
g, | |||
b | |||
) |
def colorsys.rgb_to_hsv | ( | r, | |
g, | |||
b | |||
) |
def colorsys.rgb_to_yiq | ( | r, | |
g, | |||
b | |||
) |
Definition at line 34 of file colorsys.py.
def colorsys.yiq_to_rgb | ( | y, | |
i, | |||
q | |||
) |
Definition at line 40 of file colorsys.py.
list __all__ |
Definition at line 20 of file colorsys.py.
float ONE_SIXTH = 1.0 |
Definition at line 26 of file colorsys.py.
float ONE_THIRD = 1.0 |
Definition at line 25 of file colorsys.py.
float TWO_THIRD = 2.0 |
Definition at line 27 of file colorsys.py.