/// <summary>
 /// Sets the color.
 /// </summary>
 /// <param name="color">Color.</param>
 public void SetColor(ColorHSV color)
 {
     currentColor = color;
     UpdateView();
 }
示例#2
0
 /// <summary>
 /// Determines whether the specified object is equal to the current object.
 /// </summary>
 /// <param name="other">The object to compare with the current object.</param>
 /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns>
 public bool Equals(ColorHSV other)
 {
     return(H == other.H && S == other.S && V == other.V && A == other.A);
 }
示例#3
0
        /// <summary>
        /// Sets the color.
        /// </summary>
        /// <param name="color">Color.</param>
        public void SetColor(Color32 color)
        {
            currentColorHSV = new ColorHSV(color);

            UpdateView();
        }
示例#4
0
 /// <summary>
 /// Sets the color.
 /// </summary>
 /// <param name="color">Color.</param>
 public void SetColor(ColorHSV color)
 {
     currentColor = color;
     UpdateInputs();
 }