Skip to content

Commit

Permalink
fixup! remove unused and expose default color palette
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Feb 21, 2025
1 parent 78fe515 commit cb8b527
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ansi/sixel/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ func ConvertChannel(c uint32) uint32 {
// channels to the 0-100 range.
func FromColor(c color.Color) Color {
r, g, b, a := c.RGBA()
if a == 0 {
return Color{Pu: 3} // Transparent color
}
return Color{
Pu: 2, // Always use RGB format "2"
Px: int(ConvertChannel(r)),
Expand Down

0 comments on commit cb8b527

Please sign in to comment.