diff --git a/src/Avalonia.Base/Animation/Animators/ColorAnimator.cs b/src/Avalonia.Base/Animation/Animators/ColorAnimator.cs index 1686cafeb9..72add21d69 100644 --- a/src/Avalonia.Base/Animation/Animators/ColorAnimator.cs +++ b/src/Avalonia.Base/Animation/Animators/ColorAnimator.cs @@ -14,16 +14,20 @@ namespace Avalonia.Animation.Animators /// public class ColorAnimator : Animator { - // Opto-electronic conversion function for the sRGB color space - // Takes a gamma-encoded sRGB value and converts it to a linear sRGB value + /// + /// Opto-electronic conversion function for the sRGB color space. + /// Takes a gamma-encoded sRGB value and converts it to a linear sRGB value. + /// private static double OECF_sRGB(double linear) { // IEC 61966-2-1:1999 return linear <= 0.0031308d ? linear * 12.92d : (double)(Math.Pow(linear, 1.0d / 2.4d) * 1.055d - 0.055d); } - // Electro-optical conversion function for the sRGB color space - // Takes a linear sRGB value and converts it to a gamma-encoded sRGB value + /// + /// Electro-optical conversion function for the sRGB color space. + /// Takes a linear sRGB value and converts it to a gamma-encoded sRGB value. + /// private static double EOCF_sRGB(double srgb) { // IEC 61966-2-1:1999