Color returns a view color.
()
| 70 | |
| 71 | // Color returns a view color. |
| 72 | func (c Color) Color() tcell.Color { |
| 73 | if c == DefaultColor { |
| 74 | return tcell.ColorDefault |
| 75 | } |
| 76 | |
| 77 | return tcell.GetColor(string(c)).TrueColor() |
| 78 | } |
| 79 | |
| 80 | // maxChromaForLH finds the maximum chroma at a given lightness and hue |
| 81 | // that stays within the sRGB gamut using binary search. |
no outgoing calls