From 229756534fcc3d6c02ced9a2a7446d71be2a74a0 Mon Sep 17 00:00:00 2001 From: robloo Date: Tue, 20 Sep 2022 20:14:29 -0400 Subject: [PATCH] Use XML comments in ColorAnimator --- .../Animation/Animators/ColorAnimator.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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