

def __setitem__(self, point, color):
    'Set a single pixel to a given color.\n\n        This is "slow", in the sense that you probably don\'t want to do this to\n        edit every pixel in an entire image.\n        '
    point = Vector.coerce(point)
    rgb = color.rgb()
    with magick_try() as exc:
        px = lib.GetCacheViewAuthenticPixels(self._ptr, point.x, point.y, 1, 1, exc.ptr)
        rgb.check((px == ffi.NULL))
    array = ffi.new('double[]', [rgb._red, rgb._green, rgb._blue, rgb._opacity])
    lib.sanpera_pixel_from_doubles(px, array)
    with magick_try() as exc:
        assert lib.SyncCacheViewAuthenticPixels(self._ptr, exc.ptr)

dataset/ETHPy150Open eevee/sanpera/sanpera/pixel_view.py PixelView.__setitem__/VarMisuse@69/156 `exc`->`rgb`