2023-08-04 18:27:03 +00:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
|
|
|
class Color(Enum):
|
|
|
|
WHITE = 1
|
|
|
|
BLACK = 2
|
|
|
|
RED = 3
|
|
|
|
BLUE = 4
|
|
|
|
GREEN = 5
|
|
|
|
YELLOW = 6
|
|
|
|
ORANGE = 7
|
|
|
|
|
|
|
|
|
|
|
|
boundaries = {
|
|
|
|
Color.WHITE: [
|
|
|
|
[0, 0, 0],
|
|
|
|
[0, 0, 255]
|
|
|
|
],
|
|
|
|
Color.BLACK: [
|
|
|
|
[0, 0, 0],
|
|
|
|
[179, 100, 130]
|
|
|
|
],
|
|
|
|
Color.RED: [
|
|
|
|
[
|
|
|
|
[0, 100, 20],
|
|
|
|
[10, 255, 255]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
[160, 100, 20],
|
|
|
|
[179, 255, 255]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
Color.BLUE: [
|
|
|
|
[110, 50, 50],
|
|
|
|
[130, 255, 255]
|
|
|
|
],
|
|
|
|
Color.GREEN: [
|
|
|
|
[36, 25, 25],
|
|
|
|
[70, 255, 255]
|
|
|
|
],
|
|
|
|
Color.YELLOW: [
|
|
|
|
[20, 100, 0],
|
|
|
|
[45, 255, 255]
|
|
|
|
],
|
|
|
|
Color.ORANGE: [
|
|
|
|
[10, 100, 20],
|
|
|
|
[25, 255, 255]
|
|
|
|
]
|
2023-10-09 17:04:29 +00:00
|
|
|
}
|
2023-10-25 11:43:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ColorCodes(Enum):
|
|
|
|
GREEN = '#4ebc60'
|
2023-11-10 11:34:49 +00:00
|
|
|
BLUE = '#2a4af5'
|
2024-01-24 13:53:26 +00:00
|
|
|
ORANGE = '#ff9f0f'
|
2024-03-12 04:41:40 +00:00
|
|
|
GRAY = '#939ba1'
|
2024-05-27 15:33:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
class EmojiCodes(Enum):
|
|
|
|
SMILING_FACE_WITH_SUNGLASSES = '1f60e'
|
|
|
|
THUMBSUP_SIGN = '1f44d'
|
2024-07-18 08:44:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
class AvatarColors:
|
|
|
|
@staticmethod
|
|
|
|
def available_colors():
|
|
|
|
return [
|
|
|
|
"#2946C4",
|
|
|
|
"#887AF9",
|
|
|
|
"#51D0F0",
|
|
|
|
"#D37EF4",
|
|
|
|
"#FA6565",
|
|
|
|
"#FFCA0F",
|
|
|
|
"#7CDA00",
|
|
|
|
"#26A69A",
|
|
|
|
"#8B3131",
|
|
|
|
"#9B832F",
|
|
|
|
"#C0C0C0",
|
|
|
|
"#A9A9A9"
|
|
|
|
|
|
|
|
]
|