-
-
Notifications
You must be signed in to change notification settings - Fork 18
surface_get_pixels
Vašek edited this page Jan 16, 2019
·
1 revision
Returns all colors from the surface
surface_get_pixels(surface_id)
Argument | Description |
---|---|
RenderTarget2D surface_id |
The ID of the surface |
Returns: 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
.
Back to surfaces