summaryrefslogtreecommitdiffstats
path: root/termui
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-02-20 23:56:37 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2018-02-20 23:56:37 -0800
commiteb6813361345f59088453b382e8aad74a13d64c6 (patch)
tree4ce22c921066b9520c26b2b8665cff9cabe0c91a /termui
parent8cc70da406708333976edc171067d6977894c57e (diff)
Started working on colorschemes
Diffstat (limited to 'termui')
-rw-r--r--termui/theme.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/termui/theme.go b/termui/theme.go
index fd1854f..d8ea0c2 100644
--- a/termui/theme.go
+++ b/termui/theme.go
@@ -30,19 +30,3 @@ type ColorScheme struct {
LineGraph Attribute
TableCursor Attribute
}
-
-// 0 <= r,g,b <= 5
-func ColorRGB(r, g, b int) Attribute {
- within := func(n int) int {
- if n < 0 {
- return 0
- }
- if n > 5 {
- return 5
- }
- return n
- }
-
- r, b, g = within(r), within(b), within(g)
- return Attribute(0x0f + 36*r + 6*g + b)
-}