pub trait GetPixel {
    type Color: PixelColor;

    // Required method
    fn pixel(&self, p: Point) -> Option<Self::Color>;
}
Expand description

Pixel getter.

Required Associated Types§

source

type Color: PixelColor

The color type.

Required Methods§

source

fn pixel(&self, p: Point) -> Option<Self::Color>

Gets the color of a pixel.

Returns None if p is outside the bounding box.

Implementors§