|
surface_getpixel(id,x,y) |
|
id = name of the variable which holds the ID of the surface (see surface_create). x = Horizontal position of pixel on screen. y = Vertical position of pixel on screen.
Example
This function returns the color of the pixel with the indicated position (x,y) in the surface with the given ID. It could slow up the game if used excessively, so be careful with its usage.
esh_corp11 - Revision #1 |