Class SKColorExtensions
A static class providing SKColor extensions
public static class SKColorExtensions
- Inheritance
-
SKColorExtensions
Methods
Darken(SKColor, float)
Darkens the color by the specified amount
public static SKColor Darken(this SKColor c, float amount)
Parameters
Returns
- SKColor
The darkened color
Interpolate(SKColor, SKColor, float)
Interpolates a color between the from
and to
color.
public static SKColor Interpolate(this SKColor from, SKColor to, float progress)
Parameters
Returns
- SKColor
The interpolated color
Sum(SKColor, SKColor)
Adds the two colors together
public static SKColor Sum(this SKColor a, SKColor b)
Parameters
Returns
- SKColor
The sum of the two colors
ToRgbColor(SKColor)
Converts hte SKColor to an RGB.NET color
public static Color ToRgbColor(this SKColor color)
Parameters
color
SKColorThe color to convert
Returns
- Color
The RGB.NET color