 | UnityColorUtilsColorFromRGB Method |
Creates a unity color from integer RGB values.
The constructor of the Unity Color class takes float values from
0 to 1 by default.
Namespace: Slash.Unity.Common.UtilsAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic static Color ColorFromRGB(
int r,
int g,
int b
)
Public Shared Function ColorFromRGB (
r As Integer,
g As Integer,
b As Integer
) As Color
public:
static Color ColorFromRGB(
int r,
int g,
int b
)
static member ColorFromRGB :
r : int *
g : int *
b : int -> Color
Parameters
- r
- Type: SystemInt32
Red value (0-255). - g
- Type: SystemInt32
Green value (0-255). - b
- Type: SystemInt32
Blue value (0-255).
Return Value
Type:
ColorUnity color from the specified RGB values.
See Also