1
0
mirror of synced 2025-02-17 19:09:25 +01:00

Fix color conversion (#141)

This commit is contained in:
Mr-Ojii 2022-02-09 01:40:30 +09:00 committed by GitHub
parent c6d1b8f443
commit 0ddd4d393b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,7 +242,7 @@ namespace FDK
public static Color4 ColorToColor4(System.Drawing.Color col) 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 ] #region [ private ]