Click or drag to resize

ExtensionsToAdjustedColor(Color, Boolean, Single, Single) Method

Adjusts a color according to the given parameters of inversion, luminosity and saturation

Namespace: Advanced_Combat_Tracker
Assembly: Advanced Combat Tracker (in Advanced Combat Tracker.exe) Version: 3.8.3.286
Syntax
C#
public static Color ToAdjustedColor(
	this Color color,
	bool InvertLuminosity,
	float OffsetLuminosity = 0f,
	float OffsetSaturation = 0f
)

Parameters

color  Color
InputColor
InvertLuminosity  Boolean
If the light/dark ratio should be inverted
OffsetLuminosity  Single  (Optional)
If the result should be lightened(+) or darkened(-)
OffsetSaturation  Single  (Optional)
If the result should lose some of the color intensity

Return Value

Color
A color adjusted to the theme

Usage Note

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