fn from_absolute(x: i64, y: i64) -> ((i32, i32), u8) {
    let (chunk_x, local_x) = convert_coord(x);
    let (chunk_y, local_y) = convert_coord(y);

    // convert pixel coordinate from virtual 8x8 matrix to vector index
    let index = local_x as u8 + local_y as u8 * CHUNK_SIDE as u8;

    ((chunk_x, chunk_y), index)
}
/// Convert absolute pixel coordinates to chunk coordinates and pixel index inside that chunk
/// Returns tuple containing nested tuple with chunk `x` and `y` coordinates and index of a pixel
Convert absolute pixel coordinates to chunk coordinates and pixel index inside that chunk
Returns tuple containing nested tuple with chunk `x` and `y` coordinates and index of a pixel
Convert absolute pixel coordinates to chunk coordinates and pixel index inside that chunk Returns tuple containing nested tuple with chunk ` x ` and ` y ` coordinates and index of a pixel
fn from_absolute(x: i64, y: i64) -> ((i32, i32), u8) {
    let (chunk_x, local_x) = convert_coord(x);
    let (chunk_y, local_y) = convert_coord(y);
    // convert pixel coordinate from virtual 8x8 matrix to vector index
    let index = local_x as u8 + local_y as u8 * CHUNK_SIDE as u8;
    ((chunk_x, chunk_y), index)
}
fn from_absolute ( x : i64 , y : i64 ) -> ( ( i32 , i32 ) , u8 ) { let ( chunk_x , local_x ) = convert_coord ( x ) ; let ( chunk_y , local_y ) = convert_coord ( y ) ; // convert pixel coordinate from virtual 8x8 matrix to vector index let index = local_x as u8 + local_y as u8 * CHUNK_SIDE as u8 ; ( ( chunk_x , chunk_y ) , index ) }
Convert absolute pixel coordinates to chunk coordinates and pixel index inside that chunk
Returns tuple containing nested tuple with chunk `x` and `y` coordinates and index of a pixel
Convert absolute pixel coordinates to chunk coordinates and pixel index inside that chunk Returns tuple containing nested tuple with chunk ` x ` and ` y ` coordinates and index of a pixel
x
i64
y
i64