diff --git a/Models/PaintColor.cs b/Models/PaintColor.cs --- a/Models/PaintColor.cs +++ b/Models/PaintColor.cs @@ -48,6 +48,22 @@ namespace DesertPaintCodex.Models Blue = other.Blue; } + public PaintColor(string name, PaintColor other) + { + Name = name; + Red = other.Red; + Green = other.Green; + Blue = other.Blue; + } + + public void Set(string name, PaintColor other) + { + Name = name; + Red = other.Red; + Green = other.Green; + Blue = other.Blue; + } + public int GetDistanceSquared(PaintColor otherColor) { return (int)(Math.Pow(Red - otherColor.Red, 2) +