Files
@ 56b8b94d43ac
Branch filter:
Location: light9/stubs/colormath/color_objects.pyi
56b8b94d43ac
7.1 KiB
text/plain
less logging
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | # Stubs for colormath.color_objects (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
logger: Any
class ColorBase:
VALUES: Any = ...
def get_value_tuple(self): ...
class IlluminantMixin:
observer: Any = ...
def set_observer(self, observer: Any) -> None: ...
illuminant: Any = ...
def set_illuminant(self, illuminant: Any) -> None: ...
def get_illuminant_xyz(self, observer: Optional[Any] = ..., illuminant: Optional[Any] = ...): ...
class SpectralColor(IlluminantMixin, ColorBase):
VALUES: Any = ...
spec_340nm: Any = ...
spec_350nm: Any = ...
spec_360nm: Any = ...
spec_370nm: Any = ...
spec_380nm: Any = ...
spec_390nm: Any = ...
spec_400nm: Any = ...
spec_410nm: Any = ...
spec_420nm: Any = ...
spec_430nm: Any = ...
spec_440nm: Any = ...
spec_450nm: Any = ...
spec_460nm: Any = ...
spec_470nm: Any = ...
spec_480nm: Any = ...
spec_490nm: Any = ...
spec_500nm: Any = ...
spec_510nm: Any = ...
spec_520nm: Any = ...
spec_530nm: Any = ...
spec_540nm: Any = ...
spec_550nm: Any = ...
spec_560nm: Any = ...
spec_570nm: Any = ...
spec_580nm: Any = ...
spec_590nm: Any = ...
spec_600nm: Any = ...
spec_610nm: Any = ...
spec_620nm: Any = ...
spec_630nm: Any = ...
spec_640nm: Any = ...
spec_650nm: Any = ...
spec_660nm: Any = ...
spec_670nm: Any = ...
spec_680nm: Any = ...
spec_690nm: Any = ...
spec_700nm: Any = ...
spec_710nm: Any = ...
spec_720nm: Any = ...
spec_730nm: Any = ...
spec_740nm: Any = ...
spec_750nm: Any = ...
spec_760nm: Any = ...
spec_770nm: Any = ...
spec_780nm: Any = ...
spec_790nm: Any = ...
spec_800nm: Any = ...
spec_810nm: Any = ...
spec_820nm: Any = ...
spec_830nm: Any = ...
observer: Any = ...
illuminant: Any = ...
def __init__(self, spec_340nm: float = ..., spec_350nm: float = ..., spec_360nm: float = ..., spec_370nm: float = ..., spec_380nm: float = ..., spec_390nm: float = ..., spec_400nm: float = ..., spec_410nm: float = ..., spec_420nm: float = ..., spec_430nm: float = ..., spec_440nm: float = ..., spec_450nm: float = ..., spec_460nm: float = ..., spec_470nm: float = ..., spec_480nm: float = ..., spec_490nm: float = ..., spec_500nm: float = ..., spec_510nm: float = ..., spec_520nm: float = ..., spec_530nm: float = ..., spec_540nm: float = ..., spec_550nm: float = ..., spec_560nm: float = ..., spec_570nm: float = ..., spec_580nm: float = ..., spec_590nm: float = ..., spec_600nm: float = ..., spec_610nm: float = ..., spec_620nm: float = ..., spec_630nm: float = ..., spec_640nm: float = ..., spec_650nm: float = ..., spec_660nm: float = ..., spec_670nm: float = ..., spec_680nm: float = ..., spec_690nm: float = ..., spec_700nm: float = ..., spec_710nm: float = ..., spec_720nm: float = ..., spec_730nm: float = ..., spec_740nm: float = ..., spec_750nm: float = ..., spec_760nm: float = ..., spec_770nm: float = ..., spec_780nm: float = ..., spec_790nm: float = ..., spec_800nm: float = ..., spec_810nm: float = ..., spec_820nm: float = ..., spec_830nm: float = ..., observer: str = ..., illuminant: str = ...) -> None: ...
def get_numpy_array(self): ...
def calc_density(self, density_standard: Optional[Any] = ...): ...
class LabColor(IlluminantMixin, ColorBase):
VALUES: Any = ...
lab_l: Any = ...
lab_a: Any = ...
lab_b: Any = ...
observer: Any = ...
illuminant: Any = ...
def __init__(self, lab_l: Any, lab_a: Any, lab_b: Any, observer: str = ..., illuminant: str = ...) -> None: ...
class LCHabColor(IlluminantMixin, ColorBase):
VALUES: Any = ...
lch_l: Any = ...
lch_c: Any = ...
lch_h: Any = ...
observer: Any = ...
illuminant: Any = ...
def __init__(self, lch_l: Any, lch_c: Any, lch_h: Any, observer: str = ..., illuminant: str = ...) -> None: ...
class LCHuvColor(IlluminantMixin, ColorBase):
VALUES: Any = ...
lch_l: Any = ...
lch_c: Any = ...
lch_h: Any = ...
observer: Any = ...
illuminant: Any = ...
def __init__(self, lch_l: Any, lch_c: Any, lch_h: Any, observer: str = ..., illuminant: str = ...) -> None: ...
class LuvColor(IlluminantMixin, ColorBase):
VALUES: Any = ...
luv_l: Any = ...
luv_u: Any = ...
luv_v: Any = ...
observer: Any = ...
illuminant: Any = ...
def __init__(self, luv_l: Any, luv_u: Any, luv_v: Any, observer: str = ..., illuminant: str = ...) -> None: ...
class XYZColor(IlluminantMixin, ColorBase):
VALUES: Any = ...
xyz_x: Any = ...
xyz_y: Any = ...
xyz_z: Any = ...
observer: Any = ...
illuminant: Any = ...
def __init__(self, xyz_x: Any, xyz_y: Any, xyz_z: Any, observer: str = ..., illuminant: str = ...) -> None: ...
def apply_adaptation(self, target_illuminant: Any, adaptation: str = ...) -> None: ...
class xyYColor(IlluminantMixin, ColorBase):
VALUES: Any = ...
xyy_x: Any = ...
xyy_y: Any = ...
xyy_Y: Any = ...
observer: Any = ...
illuminant: Any = ...
def __init__(self, xyy_x: Any, xyy_y: Any, xyy_Y: Any, observer: str = ..., illuminant: str = ...) -> None: ...
class BaseRGBColor(ColorBase):
VALUES: Any = ...
rgb_r: Any = ...
rgb_g: Any = ...
rgb_b: Any = ...
is_upscaled: Any = ...
def __init__(self, rgb_r: Any, rgb_g: Any, rgb_b: Any, is_upscaled: bool = ...) -> None: ...
@property
def clamped_rgb_r(self): ...
@property
def clamped_rgb_g(self): ...
@property
def clamped_rgb_b(self): ...
def get_upscaled_value_tuple(self): ...
def get_rgb_hex(self): ...
@classmethod
def new_from_rgb_hex(cls, hex_str: Any): ...
class sRGBColor(BaseRGBColor):
rgb_gamma: float = ...
native_illuminant: str = ...
conversion_matrices: Any = ...
class AdobeRGBColor(BaseRGBColor):
rgb_gamma: float = ...
native_illuminant: str = ...
conversion_matrices: Any = ...
class AppleRGBColor(BaseRGBColor):
rgb_gamma: float = ...
native_illuminant: str = ...
conversion_matrices: Any = ...
class HSLColor(ColorBase):
VALUES: Any = ...
hsl_h: Any = ...
hsl_s: Any = ...
hsl_l: Any = ...
def __init__(self, hsl_h: Any, hsl_s: Any, hsl_l: Any) -> None: ...
class HSVColor(ColorBase):
VALUES: Any = ...
hsv_h: Any = ...
hsv_s: Any = ...
hsv_v: Any = ...
def __init__(self, hsv_h: Any, hsv_s: Any, hsv_v: Any) -> None: ...
class CMYColor(ColorBase):
VALUES: Any = ...
cmy_c: Any = ...
cmy_m: Any = ...
cmy_y: Any = ...
def __init__(self, cmy_c: Any, cmy_m: Any, cmy_y: Any) -> None: ...
class CMYKColor(ColorBase):
VALUES: Any = ...
cmyk_c: Any = ...
cmyk_m: Any = ...
cmyk_y: Any = ...
cmyk_k: Any = ...
def __init__(self, cmyk_c: Any, cmyk_m: Any, cmyk_y: Any, cmyk_k: Any) -> None: ...
class IPTColor(ColorBase):
VALUES: Any = ...
conversion_matrices: Any = ...
ipt_i: Any = ...
ipt_p: Any = ...
ipt_t: Any = ...
def __init__(self, ipt_i: Any, ipt_p: Any, ipt_t: Any) -> None: ...
@property
def hue_angle(self): ...
|