about summary refs log tree commit diff stats
path: root/archive/0.vm.arc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-13 17:00:55 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-13 17:00:55 -0700
commit272432ce759dbfa2b886fa86af4ba08d0689b59d (patch)
tree997998225cc57f57fdca9e4dea0173502ba85f6f /archive/0.vm.arc
parent62a2afe0d842534f00decb9e8e4c85cdbcf36bff (diff)
downloadmu-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.vm.arc')
0 files changed, 0 insertions, 0 deletions