fn init_chunk(x: i32, y: i32) -> Result {
        let empty_pixel = Pixel {
            price: <T::Balance as As<u64>>::sa(DEFAULT_PRICE),
            color: [255, 255, 255],                            //white
        };
        <Chunks<T>>::insert((x, y), vec![empty_pixel.clone(); CHUNK_SIDE * CHUNK_SIDE]);
        Ok(())
    }
///  Initialize chunk at specific coordinates and set all of its pixels to be white color and of `DEFAULT_PRICE`
Initialize chunk at specific coordinates and set all of its pixels to be white color and of `DEFAULT_PRICE`
Initialize chunk at specific coordinates and set all of its pixels to be white color and of ` DEFAULT_PRICE `
fn init_chunk(x: i32, y: i32) -> Result {
        let empty_pixel = Pixel {
            price: <T::Balance as As<u64>>::sa(DEFAULT_PRICE),
            color: [255, 255, 255],                            //white
        };
        <Chunks<T>>::insert((x, y), vec![empty_pixel.clone(); CHUNK_SIDE * CHUNK_SIDE]);
        Ok(())
    }
fn init_chunk ( x : i32 , y : i32 ) -> Result { let empty_pixel = Pixel { price : < T :: Balance as As < u64 > > :: sa ( DEFAULT_PRICE ) , color : [ 255 , 255 , 255 ] , //white } ; < Chunks < T > > :: insert ( ( x , y ) , vec ! [ empty_pixel clone ( ) CHUNK_SIDE CHUNK_SIDE ] ) ; Ok ( ( ) ) }
Initialize chunk at specific coordinates and set all of its pixels to be white color and of `DEFAULT_PRICE`
Initialize chunk at specific coordinates and set all of its pixels to be white color and of ` DEFAULT_PRICE `
x
i32
y
i32