Skip to content

Commit 6a30249

Browse files
Add additional colors to palette
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent fc7fb12 commit 6a30249

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

git_sim/git_sim_base_command.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ def __init__(self):
4040
m.MAROON,
4141
m.PURPLE,
4242
m.GOLD,
43+
m.TEAL,
44+
m.RED,
45+
m.PINK,
46+
m.DARK_BLUE,
4347
]
4448

4549
self.logo = m.ImageMobject(settings.logo)
@@ -1071,7 +1075,7 @@ def color_by(self, offset=0):
10711075
f"{author[:15]} ({str(len(self.author_groups[author]))})",
10721076
font="Monospace",
10731077
font_size=36,
1074-
color=self.colors[int(i % 7)],
1078+
color=self.colors[int(i % 11)],
10751079
)
10761080
authorText.move_to(
10771081
[(-5 - offset) if settings.reverse else (5 + offset), -i, 0]
@@ -1085,7 +1089,7 @@ def color_by(self, offset=0):
10851089
else:
10861090
self.add(authorText)
10871091
for g in self.author_groups[author]:
1088-
g[0].set_color(self.colors[int(i % 7)])
1092+
g[0].set_color(self.colors[int(i % 11)])
10891093
self.recenter_frame()
10901094
self.scale_frame()
10911095

0 commit comments

Comments
 (0)