Garry's Mod Wiki

GWEN.TextureColor

  Color GWEN.TextureColor( number x, number y, Material matOverride = nil )

Description

Retrieves the color from a materials texture at the provided UV coordinates

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.
3 Material matOverride = nil
If given, use this specific material instead of the current derma skin's material.

Returns

1 Color
The color of the point on the skin.