Garry's Mod Wiki

Revision Difference

GWEN.TextureColor#562154

<function name="TextureColor" parent="GWEN" type="libraryfunc"> <description>When used in a material skin, it returns a color value from a point in the skin image.</description> <realm>Client and Menu</realm> <file line="114-L120">lua/derma/derma_gwen.lua</file>⤶ <args> <arg name="x" type="number">X position of the pixel to get the color from.</arg> <arg name="y" type="number">Y position of the pixel to get the color from.</arg> </args> <rets> <ret name="" type="table">The color of the point on the skin as a <page>Color</page>.</ret> </rets> </function>