From 0ddd4d393b6787156adeb6aab6596f38cdd49e78 Mon Sep 17 00:00:00 2001 From: Mr-Ojii <59733587+Mr-Ojii@users.noreply.github.com> Date: Wed, 9 Feb 2022 01:40:30 +0900 Subject: [PATCH] Fix color conversion (#141) --- FDK19/コード/00.共通/C変換.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FDK19/コード/00.共通/C変換.cs b/FDK19/コード/00.共通/C変換.cs index 6da79999..740b0cc9 100644 --- a/FDK19/コード/00.共通/C変換.cs +++ b/FDK19/コード/00.共通/C変換.cs @@ -242,7 +242,7 @@ namespace FDK public static Color4 ColorToColor4(System.Drawing.Color col) { - return new Color4(col.ToArgb()); + return new Color4(col.R / 255f, col.G / 255f, col.B / 255f, col.A / 255f); } #region [ private ]