ColorExt.ScaleColorBrightness Method

Creates a color based on an already existing color and a brightness scale value.

Namespace: UltimateXR.Extensions.Unity.Render
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Color ScaleColorBrightness(
	 this in Color color,
	float brightnessScale
)

Parameters

 

color
Type: Color
Color value
brightnessScale
Type: System.Single
The brightness scale factor

Return Value

Type: Color
Color with adjusted brightness

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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

Reference

ColorExt Class
UltimateXR.Extensions.Unity.Render Namespace