@property
    def color(self):
        # XXX this needs to do something special to handle non-rgba images
        if self._pixel == ffi.NULL:
            raise ValueError("Pixel has expired")
        array = ffi.new("double[]", 4)
        lib.sanpera_pixel_to_doubles(self._pixel, array)
        return RGBColor(*array)
dataset/ETHPy150Open eevee/sanpera/sanpera/pixel_view.py/PixelViewPixel.color/original