From 55dac886d5e9b0af622f0671c9dc6c9399f8f68e Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 6 Mar 2024 14:46:47 -0500 Subject: [PATCH] fix(term): unexport RgbToHex --- exp/term/ansi/util.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exp/term/ansi/util.go b/exp/term/ansi/util.go index 4bb32e21..767093f9 100644 --- a/exp/term/ansi/util.go +++ b/exp/term/ansi/util.go @@ -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 }