Garry's Mod Wiki

Revision Difference

ITexture:GetColor#549227

<function name="GetColor" parent="ITexture" type="classfunc"> <description> Returns the color of the specified pixel, only works for textures created from PNG files. <bug issue="2407">The returned color will not have the color metatable.</bug> </description> <realm>Shared</realm>⤶ <realm>Shared and Menu</realm>⤶ <args> <arg name="x" type="number">The X coordinate.</arg> <arg name="y" type="number">The Y coordinate.</arg> </args> <rets> <ret name="" type="table">The color of the pixel as a <page>Color</page>.</ret> </rets> </function>