File: colors.md

package info (click to toggle)
pyvesync 3.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,832 kB
  • sloc: python: 16,169; makefile: 3
file content (39 lines) | stat: -rw-r--r-- 1,245 bytes parent folder | download | duplicates (2)
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
# Color Handlers

The `pyvesync.utils.colors` module provides classes and functions for handling color conversions and representations. It includes the `Color` class, which serves as a base for color manipulation, and the `HSV` and `RGB` classes for specific color models. The module is designed for internal use within the library and is not intended for public use.

## Color class

This is the primary class that holds the color data and provides methods for conversion between different color models (RGB, HSV). It also includes methods for validating color values and generating color strings in various formats.

::: pyvesync.utils.colors.Color
    handler: python
    options:
      show_root_heading: true
      show_source: true
      filters:
      - "!Config"
      - "!^__init*"
      - "!__post_init__"
      - "!__str__"

::: pyvesync.utils.colors.HSV
    handler: python
    options:
      show_root_heading: true
      show_source: true
      filters:
      - "!Config"
      - "!^__init*"
      - "!__post_init__"
      - "!__str__"

::: pyvesync.utils.colors.RGB
    handler: python
    options:
      show_root_heading: true
      show_source: true
      filters:
      - "!Config"
      - "!__post_init__"
      - "!__str__"