Commit activity
Last 12 weeks · 0 commits
Community health
2 of 6 standards met
Recent PRs & issues
Hi Fatih, two of my tools using color v1.19.0 panic ONLY on linux_ppc64le. Here's the log from here. Other platforms had no issue (see status here).
Summary 1. Preserve RGB component ordering in : compares colors by counting occurrences of each in an unordered map. 24-bit RGB colors store 5 consecutive attributes: . Treating RGB parameters as an unordered multiset caused different RGB colors whose R, G, B values are permutations of each other (e.g., and ) to incorrectly evaluate as equal (). Grouped RGB color sequences into compound components during comparison so that RGB component ordering is preserved, while still allowing independent attributes (such as and ) to compare equal regardless of insertion order. 2. Documentation fixes: Fixed the doc comment on which previously had a copy-paste header Fixed code examples in and doc comments to reference and instead of . 3. Tests: Added covering identical RGB colors, RGB permutations, foreground vs background RGB, and mixed attribute ordering.
Repository: fatih/color. Description: Color package for Go (golang) Stars: 8010, Forks: 650. Primary language: Go. Languages: Go (100%). License: MIT. Homepage: https://pkg.go.dev/github.com/fatih/color Topics: ansi, color, coloring, go, golang. Latest release: v1.19.0 (8mo ago). Open PRs: 20, open issues: 20. Last activity: 1mo ago. Community health: 42%. Top contributors: fatih, dependabot[bot], gregpoirson, pellared, n10v, sashamelentyev, bl-ue, zddhub, ataypamart, pattmax00 and others.