aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-09-25 21:01:03 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-09-25 21:01:03 +0000
commit9361e7c0723c15328d4e66747d5d1822ccb5c484 (patch)
tree0056c1b90fe5b86f206fc942debd1c4a41a38b19
parentconfig: simplify initialization of color table in config_load() (diff)
config: add comments to default_color_table[] about color channel values
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index b148ec47..e3b79e3e 100644
--- a/config.c
+++ b/config.c
@@ -64,6 +64,7 @@ static const uint32_t default_color_table[256] = {
0xffffff,
// 6x6x6 RGB cube
+ // (color channels = i ? i*40+55 : 0, where i = 0..5)
cube36(0x000000),
cube36(0x5f0000),
cube36(0x870000),
@@ -72,6 +73,7 @@ static const uint32_t default_color_table[256] = {
cube36(0xff0000),
// 24 shades of gray
+ // (color channels = i*10+8, where i = 0..23)
0x080808, 0x121212, 0x1c1c1c, 0x262626,
0x303030, 0x3a3a3a, 0x444444, 0x4e4e4e,
0x585858, 0x626262, 0x6c6c6c, 0x767676,