Garry's Mod Wiki

render.ReadPixel

Description

Reads the color of the specified pixel from the RenderTarget sent by render.CapturePixels

Arguments

1 number x
The x coordinate.
2 number y
The y coordinate.

Returns

1 number r
The red channel value.
2 number g
The green channel value.
3 number b
The blue channel value.
4 number a
The alpha channel value or no value if the render target has no alpha channel.