Added ToString and DebuggerDisplay

Casting a hex :ok-hand:
This commit is contained in:
Khionu Terabite
2016-07-10 01:31:10 -04:00
committed by GitHub
parent 551b60d9b1
commit c72bf0678b

View File

@@ -32,6 +32,11 @@
((uint)(r * 255.0f) << 16) |
((uint)(g * 255.0f) << 8) |
(uint)(b * 255.0f);
}
}
public override string ToString() =>
$"#{Convert.ToString(RawValue, 16)}";
private string DebuggerDisplay() =>
$"#{Convert.ToString(RawValue, 16)} ({RawValue})";
}
}