Skip to main content

pixel

Function pixel 

Source
pub fn pixel(base: u8, x: u8, y: u8) -> [u8; 4]
Expand description

Pixel (x, y) of a sheet, y counted from the image’s top (the row order Texture2D.image gives, after UnityPy’s flip): [base + x + 16 y, 0x40 + x, 0x80 + y, 0xFF - x - y], each byte wrapping, the last left out for RGB24. Every channel of a sheet up to 15 x 15 is distinct from the zeros a crop pads with.