Coverage for src/colorspace/__init__.py: 100%

49 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-10-29 15:11 +0000

1 

2 

3# The color library which contains all the 

4# color objects and required transformation 

5# methods. 

6from .colorlib import colorlib 

7from .colorlib import polarLUV 

8from .colorlib import HCL 

9from .colorlib import CIELUV 

10from .colorlib import CIEXYZ 

11from .colorlib import RGB 

12from .colorlib import sRGB 

13from .colorlib import CIELAB 

14from .colorlib import polarLAB 

15from .colorlib import HSV 

16from .colorlib import HLS 

17from .colorlib import hexcols 

18from .colorlib import compare_colors 

19 

20# Color vision deficiency functions. 

21from .CVD import tritan 

22from .CVD import protan 

23from .CVD import deutan 

24from .CVD import desaturate 

25 

26# Default HCL color palettes methods and 

27# functions. 

28from .palettes import palette 

29from .palettes import hclpalettes 

30from .palettes import qualitative_hcl 

31from .palettes import diverging_hcl 

32from .palettes import divergingx_hcl 

33from .palettes import sequential_hcl 

34from .palettes import rainbow_hcl 

35from .palettes import heat_hcl 

36from .palettes import terrain_hcl 

37from .palettes import diverging_hsv 

38from .palettes import rainbow 

39 

40# Color manipulation utils 

41from .utils import mixcolor 

42from .utils import lighten 

43from .utils import darken 

44from .utils import max_chroma 

45from .utils import contrast_ratio 

46from .utils import check_hex_colors 

47from .utils import extract_transparency 

48from .utils import adjust_transparency 

49from .utils import mixcolor 

50 

51# Helper functions and methods 

52from .hcl_palettes import hcl_palettes 

53from .hcl_palettes import divergingx_palettes 

54from .swatchplot import swatchplot 

55from .specplot import specplot 

56from .hclplot import hclplot 

57from .choose_palette import choose_palette 

58from .cvd_image import cvd_image 

59from .demos import demoplot 

60from .datasets import dataset 

61 

62# Adding version 

63from colorspace import version 

64__version__ = version.short_version 

65del version