Skip to content

Commit 4172300

Browse files
tharvikmatthiaskramm
authored andcommitted
add colorsys (#419)
* add colorsys * add undocumented constants
1 parent 0fea15e commit 4172300

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

stdlib/2and3/colorsys.pyi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Stubs for colorsys
2+
3+
from typing import Tuple
4+
5+
def rgb_to_yiq(r: float, g: float, b: float) -> Tuple[float, float, float]: ...
6+
def yiq_to_rgb(y: float, i: float, q: float) -> Tuple[float, float, float]: ...
7+
def rgb_to_hls(r: float, g: float, b: float) -> Tuple[float, float, float]: ...
8+
def hls_to_rgb(h: float, l: float, s: float) -> Tuple[float, float, float]: ...
9+
def rgb_to_hsv(r: float, g: float, b: float) -> Tuple[float, float, float]: ...
10+
def hsv_to_rgb(h: float, s: float, v: float) -> Tuple[float, float, float]: ...
11+
12+
# TODO undocumented
13+
ONE_SIXTH = ... # type: float
14+
ONE_THIRD = ... # type: float
15+
TWO_THIRD = ... # type: float

0 commit comments

Comments
 (0)