Root/
| 1 | /* |
| 2 | * gfx/style.c - Drawing style |
| 3 | * |
| 4 | * Written 2016 by Werner Almesberger |
| 5 | * Copyright 2016 by Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | #include <stdint.h> |
| 14 | |
| 15 | #include "misc/util.h" |
| 16 | #include "gfx/style.h" |
| 17 | |
| 18 | |
| 19 | uint32_t color_rgb[] = { |
| 20 | [COLOR_BLACK] = 0x000000, |
| 21 | [COLOR_BLUE] = 0x0000ff, |
| 22 | [COLOR_GREEN] = 0x00ff00, |
| 23 | [COLOR_RED] = 0xff0000, |
| 24 | [COLOR_YELLOW] = 0xffff00, |
| 25 | [COLOR_WHITE] = 0xffffff, |
| 26 | [COLOR_GREEN4] = 0x009000, |
| 27 | [COLOR_GREEN3] = 0x00b000, |
| 28 | [COLOR_GREEN2] = 0x00d000, |
| 29 | [COLOR_CYAN4] = 0x009090, |
| 30 | [COLOR_CYAN3] = 0x00b0b0, |
| 31 | [COLOR_RED4] = 0x900000, |
| 32 | [COLOR_RED3] = 0xb00000, |
| 33 | [COLOR_MAGENTA4] = 0x900090, |
| 34 | [COLOR_BROWN2] = 0xc06000, |
| 35 | [COLOR_PINK4] = 0xff8080, |
| 36 | |
| 37 | /* user-defined colors */ |
| 38 | [COLOR_DARK_YELLOW] = 0x848400, |
| 39 | [COLOR_LIGHT_GREY] = 0xd0d0d0, |
| 40 | [COLOR_LIGHT_YELLOW] = 0xffffc2, |
| 41 | /* |
| 42 | * If COLOR_LIGHT_YELLOW should be visible in diff (and not |
| 43 | * just appear white), use 0xffffa0 or darker. |
| 44 | */ |
| 45 | }; |
| 46 | |
| 47 | unsigned n_color_rgb = ARRAY_ELEMENTS(color_rgb); |
| 48 |
Branches:
master
