pub trait DrawSpriteTrait {
    fn get_pixel(&self, pos: Vi2d) -> Option<Color>;
    fn set_pixel(&mut self, pos: Vi2d, col: Color);
    fn size(&self) -> Vu2d;
    unsafe fn get_pixel_unchecked(&self, pos: Vu2d) -> Color;
    unsafe fn set_pixel_unchecked(&mut self, pos: Vu2d, col: Color);
}

Required Methods

Get the pixel at the given location, but bypassing any bounds check

Safety
You must ensure that the pos in bounds

Set the pixel at the given location, but bypassing any bounds check

Safety
You must ensure that the pos in bounds

Implementors