version 1.14, 2016/07/15 00:42:56 |
version 1.15, 2017/03/24 07:14:27 |
|
|
* map our RGB colour to the closest in the cube, also work out the closest |
* map our RGB colour to the closest in the cube, also work out the closest |
* grey, and use the nearest of the two. |
* grey, and use the nearest of the two. |
* |
* |
* Note that the xterm has much lower resolution for darker colors (they are |
* Note that the xterm has much lower resolution for darker colours (they are |
* not evenly spread out), so our 6 levels are not evenly spread: 0x0, 0x5f |
* not evenly spread out), so our 6 levels are not evenly spread: 0x0, 0x5f |
* (95), 0x87 (135), 0xaf (175), 0xd7 (215) and 0xff (255). Greys are more |
* (95), 0x87 (135), 0xaf (175), 0xd7 (215) and 0xff (255). Greys are more |
* evenly spread (8, 18, 28 ... 238). |
* evenly spread (8, 18, 28 ... 238). |