diff --git a/RGB.NET.Core/Extensions/MathExtensions.cs b/RGB.NET.Core/Extensions/MathExtensions.cs index 59342d0..415a53c 100644 --- a/RGB.NET.Core/Extensions/MathExtensions.cs +++ b/RGB.NET.Core/Extensions/MathExtensions.cs @@ -68,20 +68,16 @@ namespace RGB.NET.Core return value; } - - #region Internal - + [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static byte GetByteValueFromPercentage(this double percentage) + public static byte GetByteValueFromPercentage(this double percentage) { if (double.IsNaN(percentage)) return 0; percentage = percentage.Clamp(0, 1.0); return (byte)(percentage.Equals(1.0) ? 255 : percentage * 256.0); } - - #endregion - + #endregion } }