Double number of colors for 3d demo

This commit is contained in:
Drew Slobodnjak
2025-12-07 23:15:17 -08:00
parent e326306485
commit 8ed233e867
@@ -435,10 +435,10 @@ func (s *grot3dSim) generateSVG() string {
g := int(float64(c.G) * intensity)
b := int(float64(c.B) * intensity)
// Quantize colors to reduce palette (round to nearest 16)
r = (r / 16) * 16
g = (g / 16) * 16
b = (b / 16) * 16
// Quantize colors to reduce palette (round to nearest 8)
r = (r / 8) * 8
g = (g / 8) * 8
b = (b / 8) * 8
colorStr := fmt.Sprintf("#%02x%02x%02x", r, g, b)