Garry's Mod Wiki

Revision Difference

Panel:ColorTo#510585

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