fire/colors.h

62 lines
997 B
C
Raw Normal View History

2019-12-13 03:27:13 +00:00
#ifndef COLORS_INCLUDED
#define COLORS_INCLUDED
2019-12-13 21:15:29 +00:00
#include "types.h"
2019-12-13 03:27:13 +00:00
#include "termbox.h"
2019-12-13 21:15:29 +00:00
#define CLRS_LEN 13
#define RED 0xdd1111
#define BLACK 0x000000
2019-12-13 21:35:13 +00:00
#define YELLOW 0xff7700
2019-12-13 21:15:29 +00:00
#define WHITE 0xffffff
2019-12-13 03:27:13 +00:00
2019-12-13 21:15:29 +00:00
struct tb_cell normcolors[CLRS_LEN] =
2019-12-13 03:27:13 +00:00
{
2019-12-13 21:15:29 +00:00
// default
2019-12-13 03:27:13 +00:00
{ ' ', 9, 0 },
2019-12-13 21:15:29 +00:00
// red/black
2019-12-13 03:27:13 +00:00
{ 0x2591, 2, 0 },
{ 0x2592, 2, 0 },
{ 0x2593, 2, 0 },
{ 0x2588, 2, 0 },
2019-12-13 21:15:29 +00:00
// yellow/red
2019-12-13 03:27:13 +00:00
{ 0x2591, 4, 2 },
{ 0x2592, 4, 2 },
{ 0x2593, 4, 2 },
{ 0x2588, 4, 2 },
2019-12-13 21:15:29 +00:00
// white/red
{ 0x2591, 8, 2 },
{ 0x2592, 8, 2 },
{ 0x2593, 8, 2 },
{ 0x2588, 8, 2 },
};
struct tb_cell truecolors[CLRS_LEN] =
{
// default
2019-12-13 21:35:13 +00:00
{ ' ', 9, 0 },
2019-12-13 21:15:29 +00:00
// red/black
{ 0x2591, RED, BLACK },
{ 0x2592, RED, BLACK },
{ 0x2593, RED, BLACK },
{ 0x2588, RED, BLACK },
// yellow/red
{ 0x2591, YELLOW, RED },
{ 0x2592, YELLOW, RED },
{ 0x2593, YELLOW, RED },
{ 0x2588, YELLOW, RED },
// white/red
{ 0x2591, WHITE, RED },
{ 0x2592, WHITE, RED },
{ 0x2593, WHITE, RED },
{ 0x2588, WHITE, RED },
2019-12-13 03:27:13 +00:00
};
#endif