

def __getitem__(self, point):
    point = Vector.coerce(point)
    px = ffi.new('PixelPacket *')
    with magick_try() as exc:
        lib.GetOneCacheViewAuthenticPixel(self._ptr, point.x, point.y, px, exc.ptr)
    array = ffi.new('double[]', 4)
    lib.sanpera_pixel_to_doubles(px, array)
    return RGBColor(*array)

dataset/ETHPy150Open eevee/sanpera/sanpera/pixel_view.py PixelView.__getitem__/original