Click or drag to resize

ColorExtensionsNormalize Method

Used to normalize a color to prevent blowout or strangeness when r/g/b values are greater than 100%

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public static UnityEngine.Color Normalize(
	this UnityEngine.Color color,
	bool includeAlpha
)

Parameters

color
Type: UnityEngine.Color
Color to normalize
includeAlpha
Type: SystemBoolean
Should alpha be considered?

Return Value

Type: UnityEngine.Color
Returns a color with normalized values

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnityEngine.Color. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also