Color/Unpack

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Description=Returns the r, g, b, and a of the color. {{NextUpdate}} |Realm=Shared |IsClass=Yes |Name=Unpack |Parent=Color }} {{Ret |type=number |desc=r }} {{Ret |type...")
 
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Description=Returns the r, g, b, and a of the color.
+
|Description=Returns the red, green, blue, and alpha of the color.
 
+
{{NextUpdate}}
+
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes
|Name=Unpack
 
|Parent=Color
 
 
}}
 
}}
 
{{Ret
 
{{Ret
 
|type=number
 
|type=number
|desc=r
+
|desc=Red
 
}}
 
}}
 
{{Ret
 
{{Ret
 
|type=number
 
|type=number
|desc=g
+
|desc=Green
 
}}
 
}}
 
{{Ret
 
{{Ret
 
|type=number
 
|type=number
|desc=b
+
|desc=Blue
 +
}}
 +
{{Ret
 +
|type=number
 +
|desc=Alpha
 
}}
 
}}

Latest revision as of 16:45, 12 November 2019

 Color:Unpack( )

Contents

Description

Returns the red, green, blue, and alpha of the color.

Returns

number

Red

Returns

number

Green

Returns

number

Blue

Returns

number

Alpha
Personal tools
Navigation