Garry's Mod Wiki

Revision Difference

ITexture:GetColor#511468

<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>⤶ <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>⤶ ⤶