Returns all colors from the surface
surface_get_pixels(surface_id)
RenderTarget2D
Returns: Color[]
Color[]
This function returns the colors of all pixels from a surface and stores them in an array.
Color[] col = surface_get_pixels(surf);
This will return the colors of pixels from the surface called surf and store them in the array col.
surf
col
Back to surfaces
There was an error while loading. Please reload this page.