Garry's Mod Wiki

GWEN.TextureColor

  table GWEN.TextureColor( number x, number y )

Description

When used in a material skin, it returns a color value from a point in the skin image.

Arguments

1 number x
X position of the pixel to get the color from.
2 number y
Y position of the pixel to get the color from.

Returns

1 table
The color of the point on the skin as a Color.