fn pixcol(&self, x:i32, y:i32) -> Color {
        let p = (self.width()as i32 * y + x) as usize;
        if p < self.data().len() {
            self.data()[p] //return rgba
        }else {Color::rgba(0,0,0,0)}
    }
///gets pixel Color at x,y safely
gets pixel Color at x,y safely
gets pixel Color at x y safely
fn pixcol(&self, x:i32, y:i32) -> Color {
        let p = (self.width()as i32 * y + x) as usize;
        if p < self.data().len() {
            self.data()[p] //return rgba
        }else {Color::rgba(0,0,0,0)}
    }
fn pixcol ( & self , x : i32 , y : i32 ) -> Color { let p = ( self . width ( ) as i32 * y + x ) as usize ; if p < self . data ( ) . len ( ) { self . data ( ) [ p ] //return rgba } else { Color :: rgba ( 0 , 0 , 0 , 0 ) } }
gets pixel Color at x,y safely
gets pixel Color at x y safely
&self
x
i32
y
i32
&self
x
i32
y
i32