[This is preliminary documentation and is subject to change.]

Creates a Unity color from an integer value.

Namespace: org.critterai.u3d
Assembly: cai-util-u3d (in cai-util-u3d.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static Color IntToColor(
	int i,
	float alpha
)
Public Shared Function IntToColor ( _
	i As Integer, _
	alpha As Single _
) As Color
public:
static Color IntToColor(
	int i, 
	float alpha
)

Parameters

i
Int32
An integer value to create the color from.
alpha
Single
The color's alpha.

Return Value

A Unity color based on the integer value.

Remarks

This method is useful for generating a variety of colors that are visually disimilar.

See Also