fire/colors.h

62 lines
997 B
C
Raw Normal View History

2019-12-12 19:27:13 -08:00
#ifndef COLORS_INCLUDED
#define COLORS_INCLUDED
2019-12-13 13:15:29 -08:00
#include "types.h"
2019-12-12 19:27:13 -08:00
#include "termbox.h"
2019-12-13 13:15:29 -08:00
#define CLRS_LEN 13
#define RED 0xdd1111
#define BLACK 0x000000
2019-12-13 13:35:13 -08:00
#define YELLOW 0xff7700
2019-12-13 13:15:29 -08:00
#define WHITE 0xffffff
2019-12-12 19:27:13 -08:00
2019-12-13 13:15:29 -08:00
struct tb_cell normcolors[CLRS_LEN] =
2019-12-12 19:27:13 -08:00
{
2019-12-13 13:15:29 -08:00
// default
2019-12-12 19:27:13 -08:00
{ ' ', 9, 0 },
2019-12-13 13:15:29 -08:00
// red/black
2019-12-12 19:27:13 -08:00
{ 0x2591, 2, 0 },
{ 0x2592, 2, 0 },
{ 0x2593, 2, 0 },
{ 0x2588, 2, 0 },
2019-12-13 13:15:29 -08:00
// yellow/red
2019-12-12 19:27:13 -08:00
{ 0x2591, 4, 2 },
{ 0x2592, 4, 2 },
{ 0x2593, 4, 2 },
{ 0x2588, 4, 2 },
2019-12-13 13:15:29 -08: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 13:35:13 -08:00
{ ' ', 9, 0 },
2019-12-13 13:15:29 -08: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-12 19:27:13 -08:00
};
#endif