using HPPH; using RGB.NET.Core; namespace RGB.NET.Presets.Extensions; /// /// Offers some extensions related to HPPH. /// public static class HPPHExtensions { /// /// Converts the given HPPH to a RGB.NET . /// /// The color to convert. /// The converted color. public static Color ToColor(this IColor color) => new(color.A, color.R, color.G, color.B); /// /// Converts the given HPPH to a RGB.NET . /// /// The color to convert. /// The color-type of the HPPH color. /// The converted color. public static Color ToColor(this T color) where T : struct, IColor => new(color.A, color.R, color.G, color.B); }