Files
se-launcher/CringePlugins/Utils/ColorExtensions.cs
zznty 2e4c7f5e15
All checks were successful
Build / Compute Version (push) Successful in 4s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 8m23s
Build / Build Nuget package (NuGet) (push) Successful in 8m53s
Build / Build Nuget package (CringePlugins) (push) Successful in 10m28s
Build / Build Nuget package (SharedCringe) (push) Successful in 9m37s
Build / Build Launcher (push) Successful in 14m20s
display faulted plugins as red with details tooltip
2024-11-09 20:18:50 +07:00

9 lines
255 B
C#

using System.Numerics;
namespace CringePlugins.Utils;
public static class ColorExtensions
{
public static Vector4 ToFloat4(this Color color) =>
new((float)color.R / 255, (float)color.G / 255, (float)color.B / 255, (float)color.A / 255);
}