@@ -2,7 +2,6 @@
2package anim
2package anim
7 "image/color"
6 "image/color"
8 "math/rand/v2"
7 "math/rand/v2"
@@ -11,6 +10,8 @@ import (
11 "sync/atomic"
10 "sync/atomic"
13+ "github.com/zeebo/xxh3"
14 tea "github.com/charmbracelet/bubbletea/v2"
15 tea "github.com/charmbracelet/bubbletea/v2"
15 "github.com/charmbracelet/lipgloss/v2"
16 "github.com/charmbracelet/lipgloss/v2"
16 "github.com/lucasb-eyer/go-colorful"
17 "github.com/lucasb-eyer/go-colorful"
@@ -78,7 +79,7 @@ var (
79// settingsHash creates a hash key for the settings to use for caching
80// settingsHash creates a hash key for the settings to use for caching
80func settingsHash(opts Settings) string {
81func settingsHash(opts Settings) string {
81− h := sha256.New()
82+ h := xxh3.New()
82 fmt.Fprintf(h, "%d-%s-%v-%v-%v-%t",
83 fmt.Fprintf(h, "%d-%s-%v-%v-%v-%t",
83 opts.Size, opts.Label, opts.LabelColor, opts.GradColorA, opts.GradColorB, opts.CycleColors)
84 opts.Size, opts.Label, opts.LabelColor, opts.GradColorA, opts.GradColorB, opts.CycleColors)
84 return fmt.Sprintf("%x", h.Sum(nil))
85 return fmt.Sprintf("%x", h.Sum(nil))