Garry's Mod Wiki

ITexture:GetColor

  table ITexture:GetColor( number x, number y )

Description

Returns the color of the specified pixel, only works for textures created from PNG files.

The returned color will not have the color metatable.

Issue Tracker: 2407

Arguments

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

Returns

1 table
The color of the pixel as a Color.