-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_data.py
More file actions
53 lines (40 loc) · 1.37 KB
/
example_data.py
File metadata and controls
53 lines (40 loc) · 1.37 KB
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
# pyright: strict
from __future__ import annotations
from basic_data import ColorData
from colors import ColorRGB
from identifier import Identifier
from util import SideType
class ExampleColorDataWeights(ColorData[ColorRGB]):
base_above_weight = 4
base_circle_weight = 1
horizontal_touching_vertical_weight = 1
horizontal_touching_horizontal_weight = 4
horizontal_circle_weight = 1
vertical_touching_vertical_weight = 4
vertical_touching_horizontal_weight = 1
vertical_circle_weight = 1
purple = ColorRGB.from_hex('#270627')
green = ColorRGB.from_hex('#d0ffd0')
white = ColorRGB.from_hex('#ffffff')
class PFP(ExampleColorDataWeights):
circle_color = white
predefined_colors = {
(None, SideType.ZERO, Identifier()): purple,
}
class PFP2(ExampleColorDataWeights):
circle_color = white
predefined_colors = {
(None, SideType.ZERO, None): green,
(None, SideType.BASE, None): green,
(None, None, Identifier((1, 1))): green,
}
class Black(ExampleColorDataWeights):
circle_color = ColorRGB.from_hex('#FFFFFF')
predefined_colors = {
(None, SideType.ZERO, Identifier()): ColorRGB.from_hex('#000000'),
}
class Red(ExampleColorDataWeights):
circle_color = ColorRGB.from_hex('#FFFFFF')
predefined_colors = {
(None, SideType.ZERO, Identifier()): ColorRGB.from_hex('#FF0000'),
}