fix: color change is now working
This commit is contained in:
44
headers/color.h
Normal file
44
headers/color.h
Normal file
@ -0,0 +1,44 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct color {
|
||||
char *name;
|
||||
uint32_t value;
|
||||
};
|
||||
|
||||
#define BLACK 0x000000
|
||||
#define BLUE 0x0000FF
|
||||
#define GREEN 0x008000
|
||||
#define CYAN 0x00FFFF
|
||||
#define RED 0xFF0000
|
||||
#define MAGENTA 0xFF00FF
|
||||
#define BROWN 0xA52A2A
|
||||
#define LIGHT_GREY 0xD3D3D3
|
||||
#define DARK_GREY 0x555555
|
||||
#define LIGHT_BLUE 0xADD8E6
|
||||
#define LIGHT_GREEN 0x90EE90
|
||||
#define LIGHT_CYAN 0xE0FFFF
|
||||
#define LIGHT_RED 0xFF6666
|
||||
#define LIGHT_MAGENTA 0xFF77FF
|
||||
#define LIGHT_YELLOW 0xFFFF01
|
||||
#define WHITE 0xFFFFFF
|
||||
|
||||
static const struct color colors[] = {
|
||||
{"BLACK", BLACK},
|
||||
{"BLUE", BLUE},
|
||||
{"GREEN", GREEN},
|
||||
{"CYAN", CYAN},
|
||||
{"RED", RED},
|
||||
{"MAGENTA", MAGENTA},
|
||||
{"BROWN", BROWN},
|
||||
{"LIGHT_GREY", LIGHT_GREY},
|
||||
{"DARK_GREY", DARK_GREY},
|
||||
{"LIGHT_BLUE", LIGHT_BLUE},
|
||||
{"LIGHT_GREEN", LIGHT_GREEN},
|
||||
{"LIGHT_CYAN", LIGHT_CYAN},
|
||||
{"LIGHT_RED", LIGHT_RED},
|
||||
{"LIGHT_MAGENTA", LIGHT_MAGENTA},
|
||||
{"LIGHT_YELLOW", LIGHT_YELLOW},
|
||||
{"WHITE", WHITE},
|
||||
};
|
||||
Reference in New Issue
Block a user