gradient top move
This commit is contained in:
1 parent
8be422c6b2
commit
e77f1ff5ea
3 files changed
+9
-6
No files matched your search
@@ -385,7 +385,7 @@ class BadukPanWidget(Widget):
|
|||||||
text = i18n._("board-pass")
|
text = i18n._("board-pass")
|
||||||
Color(0.45, 0.05, 0.45, 0.7)
|
Color(0.45, 0.05, 0.45, 0.7)
|
||||||
center = (self.gridpos_x[int(board_size_x / 2)], self.gridpos_y[int(board_size_y / 2)])
|
center = (self.gridpos_x[int(board_size_x / 2)], self.gridpos_y[int(board_size_y / 2)])
|
||||||
size = min(self.width, self.height) * 0.22
|
size = min(self.width, self.height) * 0.227
|
||||||
Ellipse(pos=(center[0] - size / 2, center[1] - size / 2), size=(size, size))
|
Ellipse(pos=(center[0] - size / 2, center[1] - size / 2), size=(size, size))
|
||||||
Color(0.85, 0.85, 0.85)
|
Color(0.85, 0.85, 0.85)
|
||||||
draw_text(
|
draw_text(
|
||||||
@@ -422,10 +422,13 @@ class BadukPanWidget(Widget):
|
|||||||
self.active_pv_moves.append((move.coords, move_dict["pv"], current_node))
|
self.active_pv_moves.append((move.coords, move_dict["pv"], current_node))
|
||||||
else:
|
else:
|
||||||
katrain.log(f"PV missing for move_dict {move_dict}", OUTPUT_DEBUG)
|
katrain.log(f"PV missing for move_dict {move_dict}", OUTPUT_DEBUG)
|
||||||
draw_circle(
|
evalsize = self.stone_size * scale
|
||||||
(self.gridpos_x[move.coords[0]], self.gridpos_y[move.coords[1]]),
|
evalcol = self.eval_color(move_dict["pointsLost"])
|
||||||
col=[*self.eval_color(move_dict["pointsLost"])[:3], alpha],
|
Color(*evalcol)
|
||||||
r=self.stone_size * scale,
|
Rectangle(
|
||||||
|
pos=(self.gridpos_x[move.coords[0]] - evalsize, self.gridpos_y[move.coords[1]] - evalsize),
|
||||||
|
size=(2 * evalsize, 2 * evalsize),
|
||||||
|
source="katrain/img/topmove.png",
|
||||||
)
|
)
|
||||||
if self.trainer_config["text_point_loss"]:
|
if self.trainer_config["text_point_loss"]:
|
||||||
if move_dict["pointsLost"] < 0.05:
|
if move_dict["pointsLost"] < 0.05:
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ EVAL_COLORS = {
|
|||||||
[0.447, 0.129, 0.42, 1],
|
[0.447, 0.129, 0.42, 1],
|
||||||
[0.8, 0, 0, 1],
|
[0.8, 0, 0, 1],
|
||||||
[0.9, 0.4, 0.1, 1],
|
[0.9, 0.4, 0.1, 1],
|
||||||
[0.85, 0.89, 0.3, 1],
|
[0.85, 0.89, 0.15, 1],
|
||||||
[0.67, 0.9, 0.18, 1],
|
[0.67, 0.9, 0.18, 1],
|
||||||
[0.117, 0.588, 0, 1],
|
[0.117, 0.588, 0, 1],
|
||||||
],
|
],
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
Reference in new issue
Block a user