aboutsummaryrefslogtreecommitdiff
path: root/color.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-04 00:57:44 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-04 00:57:44 +0200
commitf15b53eea4b7054826f79836e207751e86ba1cec (patch)
tree1373166457009a8ca25f3edf66cbdb99987f0585 /color.h
parent099c4db0a3a8e77deb7af7436faec802fe9401de (diff)
downloadAsciiMap-f15b53eea4b7054826f79836e207751e86ba1cec.tar.gz
Reorganised folder structure
Diffstat (limited to 'color.h')
-rw-r--r--color.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/color.h b/color.h
deleted file mode 100644
index 10d376e..0000000
--- a/color.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef _COLOR_H_
-#define _COLOR_H_
-
-#include <stdint.h>
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "m.h"
-
-#define _COLORS_SIZE 16u
-
-struct console_color
-{
- uint8_t R;
- uint8_t G;
- uint8_t B;
-
- char *no;
-};
-
-struct console_color colors[ _COLORS_SIZE ];
-
-//Calculate luminance
-//Order LSB first: BGR
-uint8_t rgb_avg(uint8_t R, uint8_t G, uint8_t B);
-
-//Get nearest printable color in console
-char *calc_col(uint8_t R, uint8_t G, uint8_t B);
-
-char *calc_col_ansi(uint8_t R, uint8_t G, uint8_t B);
-
-#endif //_COLOR_H_