aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Colors.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Colors.cs')
-rw-r--r--src/Colors.cs21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/Colors.cs b/src/Colors.cs
index de41514a..61f9208f 100644
--- a/src/Colors.cs
+++ b/src/Colors.cs
@@ -10,7 +10,7 @@ using System.Diagnostics;
namespace Crow
{
- public struct Color : IXmlSerializable
+ public struct Color
{
#region CTOR
public Color(double _R, double _G, double _B, double _A)
@@ -1018,25 +1018,6 @@ namespace Crow
public static readonly Color Zaffre = new Color(0,0.0784313725490196,0.658823529411765,1.0,"Zaffre");
public static readonly Color ZinnwalditeBrown = new Color(0.172549019607843,0.0862745098039216,0.0313725490196078,1.0,"ZinnwalditeBrown");
#endregion
-
- #region IXmlSerializable
- public void ReadXml(System.Xml.XmlReader reader)
- {
- string[] c = reader["Color"].Split(new char[] { ';' });
- R = double.Parse(c[0]);
- G = double.Parse(c[1]);
- B = double.Parse(c[2]);
- A = double.Parse(c[3]);
- }
- public void WriteXml(System.Xml.XmlWriter writer)
- {
- writer.WriteAttributeString("Color", this.ToString());
- }
- public System.Xml.Schema.XmlSchema GetSchema()
- {
- return null;
- }
- #endregion
public override string ToString()
{