Ejemplo n.º 1
0
 /// <summary>
 /// Sets the color.
 /// </summary>
 /// <param name="color">Color.</param>
 public void SetColor(ColorHSV color)
 {
     currentColor = color;
     UpdateView();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Sets the color.
        /// </summary>
        /// <param name="color">Color.</param>
        public void SetColor(Color32 color)
        {
            currentColorHSV = new ColorHSV(color);

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