Garry's Mod Wiki

render.ReadPixel

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.

Special Pages


Wikis

?

Render Time: 59ms

DB GetPage 38
Generate Html 7
SaveChanges (1) 5
Render Body 0
Render Sidebar 7