Wrap surface operations in a SurfaceIO.
Gets the color from the this surface.
Gets the color from the this surface.
This operation can be perfomance intensive, so it might be worthwile
to either use getPixels
to fetch multiple pixels at the same time or
to implement this operation on the application code.
pixel x position
pixel y position
Returns the pixels from this surface.
Returns the pixels from this surface. This operation can be perfomance intensive, so it might be worthwile to implement this operation on the application code.
color matrix
Representation of a surface operation, with the common Monad operations.