Garry's Mod Wiki

Revision Difference

Panel:ColorTo#550692

<function name="ColorTo" parent="Panel" type="classfunc"> <description>Fades panels color to specified one. It won't work unless panel has SetColor function.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <args> <arg name="color" type="table">The color to fade to</arg> <arg name="length" type="number">Length of the animation</arg> <arg name="delay" type="number">Delay before start fading</arg> <arg name="callback" type="function">Function to execute when finished</arg> </args> </function>