diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-07-13 17:00:55 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-07-13 17:00:55 -0700 |
commit | 272432ce759dbfa2b886fa86af4ba08d0689b59d (patch) | |
tree | 997998225cc57f57fdca9e4dea0173502ba85f6f /archive | |
parent | 62a2afe0d842534f00decb9e8e4c85cdbcf36bff (diff) | |
download | mu-272432ce759dbfa2b886fa86af4ba08d0689b59d.tar.gz |
get rid of our ugly rounding code
It turns out "truncating" the last 4 bits is actually more accurate, because it divides up the palette evenly. Before: 0-7 -> 0 8-0x17 -> 1 0x18-0x27 -> 2 ... 0xd8-0xe7 -> 0xe 0xe8-0xff -> 0xf The first interval is just 8 shades, and the final interval is 24 shades.
Diffstat (limited to 'archive')
0 files changed, 0 insertions, 0 deletions