Garry's Mod Wiki

Revision Difference

Global.ColorRand#514847

<function name="ColorRand" parent="Global" type="libraryfunc">⤶ <description>Creates a <page>Color</page> with randomized red, green, and blue components. If the alpha argument is true, alpha will also be randomized.</description>⤶ <realm>Shared and Menu</realm>⤶ <file line="111-L117">lua/includes/util.lua</file>⤶ <args>⤶ <arg name="a" type="boolean" default="false">Should alpha be randomized.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="table">The created <page>Color</page>.</ret>⤶ </rets>⤶ </function>⤶ ⤶