This repository has been archived on 2025-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Cryville.EEW.Unity/Assets/Cryville.EEW.Unity/ColorUtils.cs
2025-02-14 16:06:00 +08:00

8 lines
223 B
C#

using UnityEngine;
namespace Cryville.EEW.Unity {
static class ColorUtils {
public static Color ToUnityColor(this System.Drawing.Color color) => new(color.R / 255f, color.G / 255f, color.B / 255f, color.A / 255f);
}
}