예제 #1
0
 /// <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();
 }