
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
9 lines
255 B
C#
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);
|
|
} |