From 8ed233e8672706f115507662edba715fc060eb7a Mon Sep 17 00:00:00 2001 From: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com> Date: Sun, 7 Dec 2025 23:15:17 -0800 Subject: [PATCH] Double number of colors for 3d demo --- pkg/tsdb/grafana-testdata-datasource/sims/grot3d.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/tsdb/grafana-testdata-datasource/sims/grot3d.go b/pkg/tsdb/grafana-testdata-datasource/sims/grot3d.go index 6865a9970c7..d29da9b372a 100644 --- a/pkg/tsdb/grafana-testdata-datasource/sims/grot3d.go +++ b/pkg/tsdb/grafana-testdata-datasource/sims/grot3d.go @@ -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)