ExtensionsToAdjustedColor Method (Color, Boolean, Single, Single) |
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.2.285
Syntax public static Color ToAdjustedColor(
this Color color,
bool InvertLuminosity,
float OffsetLuminosity = 0f,
float OffsetSaturation = 0f
)
Parameters
- color
- Type: System.DrawingColor
InputColor - InvertLuminosity
- Type: SystemBoolean
If the light/dark ratio should be inverted - OffsetLuminosity (Optional)
- Type: SystemSingle
If the result should be lightened(+) or darkened(-) - OffsetSaturation (Optional)
- Type: SystemSingle
If the result should lose some of the color intensity
Return Value
Type:
ColorA 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