… | |
… | |
1509 | The following text gives values for the standard 88 colour mode (and |
1509 | The following text gives values for the standard 88 colour mode (and |
1510 | values for the 256 colour mode in parentheses). |
1510 | values for the 256 colour mode in parentheses). |
1511 | |
1511 | |
1512 | The RGB cube uses indices 16..79 (16..231) using the following formulas: |
1512 | The RGB cube uses indices 16..79 (16..231) using the following formulas: |
1513 | |
1513 | |
1514 | index_88 = (r * 4 + g) * 4 + b + 16 # r, g, b = 0..3 |
1514 | index_88 = (r * 4 + g) * 4 + b + 16 # r, g, b = 0..3 |
1515 | index_256 = (r * 16 + g) * 16 + b + 16 # r, g, b = 0..15 |
1515 | index_256 = (r * 6 + g) * 6 + b + 16 # r, g, b = 0..5 |
1516 | |
1516 | |
1517 | The grayscale ramp uses indices 80..87 (232..239), from 10% to 90% in 10% |
1517 | The grayscale ramp uses indices 80..87 (232..239), from 10% to 90% in 10% |
1518 | steps (1/26 to 25/26 in 1/26 steps) - black and white are already part of |
1518 | steps (1/26 to 25/26 in 1/26 steps) - black and white are already part of |
1519 | the RGB cube. |
1519 | the RGB cube. |
1520 | |
1520 | |