We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e8cbd commit 6d8410cCopy full SHA for 6d8410c
cellular_automata/von_neumann.py
@@ -326,7 +326,7 @@ def create_heatmap_colormap(max_age: int = 5) -> ListedColormap:
326
True
327
"""
328
# Create colors from dark (dead) to bright (alive)
329
- colors = ["#000000"] # Black for dead cells (age 0)
+ colors = [(0.0, 0.0, 0.0)] # Black for dead cells (age 0)
330
331
# Generate gradient from dark red through orange to bright yellow
332
for i in range(1, max_age + 1):
@@ -335,7 +335,7 @@ def create_heatmap_colormap(max_age: int = 5) -> ListedColormap:
335
# Dark red to orange
336
r = 0.5 + intensity
337
g = intensity * 0.5
338
- b = 0
+ b = 0.0
339
else:
340
# Orange to bright yellow/white
341
r = 1.0
0 commit comments