aboutsummaryrefslogtreecommitdiff
path: root/src/character.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-05-12 00:25:42 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-05-12 00:25:42 +0200
commit28baa52191099820ed2d1d5a33a0d29e50d82033 (patch)
tree5dd899ef4bc2d557e906e2f33c0a9808cf110760 /src/character.h
parent44cecf8d0b792c69cdfc398761d2ad27b05a122e (diff)
downloadAsciiMap-28baa52191099820ed2d1d5a33a0d29e50d82033.tar.gz
Added custom character palette
Diffstat (limited to 'src/character.h')
-rw-r--r--src/character.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/character.h b/src/character.h
index 7e17cd7..be6af41 100644
--- a/src/character.h
+++ b/src/character.h
@@ -2,11 +2,13 @@
#define _CHARACTER_H_
#include <stdint.h>
+#include <string.h>
//Both maps produce very different results
-const char character_luminance_map [] ;
+const char *default_character_map;
-//Select Char based on 1B brightness Value
-char calc_char(uint8_t _c, uint8_t _min, uint8_t _max);
+//Select Char based on 1B brightness Value.
+//if _custom_map == NULL default map is used
+char calc_char(uint8_t _c, uint8_t _min, uint8_t _max, char *_custom_map);
#endif //_CHARACTER_H_