Skip to content

Commit

Permalink
fix(term): unexport RgbToHex
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Mar 6, 2024
1 parent 871d2af commit 55dac88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exp/term/ansi/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ func colorToHexString(c color.Color) string {
return fmt.Sprintf("#%02x%02x%02x", r, g, b)
}

// RgbToHex converts red, green, and blue values to a hexadecimal value.
// rgbToHex converts red, green, and blue values to a hexadecimal value.
//
// hex := RgbToHex(0, 0, 255) // 0x0000FF
func RgbToHex(r, g, b uint32) uint32 {
// hex := rgbToHex(0, 0, 255) // 0x0000FF
func rgbToHex(r, g, b uint32) uint32 {
return r<<16 + g<<8 + b
}

0 comments on commit 55dac88

Please sign in to comment.