aboutsummaryrefslogtreecommitdiff
path: root/src/color.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/color.c')
-rw-r--r--src/color.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/color.c b/src/color.c
index f167016..d0fbe1b 100644
--- a/src/color.c
+++ b/src/color.c
@@ -63,6 +63,7 @@ char* calc_col(uint8_t R, uint8_t G, uint8_t B)
}
return colors[ nearest_num ].no;
}
+//TODO consolidate
char* calc_col_ansi(uint8_t R, uint8_t G, uint8_t B)
{
int num = 36 * (R/51) + 6 * (G/51) + (B/51);