add colorsys (#419)

* add colorsys

* add undocumented constants
This commit is contained in:
Valérian Rousset
2016-07-29 17:02:24 +02:00
committed by Matthias Kramm
parent 0fea15ea29
commit 417230043e

15
stdlib/2and3/colorsys.pyi Normal file
View File

@@ -0,0 +1,15 @@
# Stubs for colorsys
from typing import Tuple
def rgb_to_yiq(r: float, g: float, b: float) -> Tuple[float, float, float]: ...
def yiq_to_rgb(y: float, i: float, q: float) -> Tuple[float, float, float]: ...
def rgb_to_hls(r: float, g: float, b: float) -> Tuple[float, float, float]: ...
def hls_to_rgb(h: float, l: float, s: float) -> Tuple[float, float, float]: ...
def rgb_to_hsv(r: float, g: float, b: float) -> Tuple[float, float, float]: ...
def hsv_to_rgb(h: float, s: float, v: float) -> Tuple[float, float, float]: ...
# TODO undocumented
ONE_SIXTH = ... # type: float
ONE_THIRD = ... # type: float
TWO_THIRD = ... # type: float