feat✨: 俄罗斯轮盘

This commit is contained in:
HibiKier
2024-06-10 21:10:04 +08:00
parent 899acc248d
commit 15aba0bea9
5 changed files with 881 additions and 1 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ class BuildMat:
random_color = random.choice(bar_color)
max_num = max(self.y_index)
for y_p, y in zip(init_graph.y_point, self.build_data.data):
bar_width = int(y / max_num * graph_height)
bar_width = int(y / max_num * graph_height) or 1
bar = BuildImage(bar_width, 18, random_color)
await mark_image.paste(bar, (y_width + 1, y_p - 9))
if self.build_data.display_num: