Skip to content

Commit 6d8410c

Browse files
committed
more fixes
1 parent a1e8cbd commit 6d8410c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cellular_automata/von_neumann.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def create_heatmap_colormap(max_age: int = 5) -> ListedColormap:
326326
True
327327
"""
328328
# Create colors from dark (dead) to bright (alive)
329-
colors = ["#000000"] # Black for dead cells (age 0)
329+
colors = [(0.0, 0.0, 0.0)] # Black for dead cells (age 0)
330330

331331
# Generate gradient from dark red through orange to bright yellow
332332
for i in range(1, max_age + 1):
@@ -335,7 +335,7 @@ def create_heatmap_colormap(max_age: int = 5) -> ListedColormap:
335335
# Dark red to orange
336336
r = 0.5 + intensity
337337
g = intensity * 0.5
338-
b = 0
338+
b = 0.0
339339
else:
340340
# Orange to bright yellow/white
341341
r = 1.0

0 commit comments

Comments
 (0)