[][src]Function thorium::dmg_render::dmg_inflate_row

pub const fn dmg_inflate_row(low: u8, high: u8) -> [u8; 8]

Inflates DMG (low, high) image bytes into standard index values.

use thorium::dmg_render::*;
assert_eq!(dmg_inflate_row(0xFF, 0), [1u8; 8]);
assert_eq!(dmg_inflate_row(0, 0xFF), [2u8; 8]);
assert_eq!(dmg_inflate_row(0x7C, 0x7C), [0,3,3,3,3,3,0,0]);