Exemplo n.º 1
0
        /// <summary>
        /// Compares this colorspace with another for their equality of values
        /// </summary>
        /// <param name="obj">The colorspace to compare to</param>
        /// <returns>True if they are the same, false otherwise</returns>
        public override bool Equals(object obj)
        {
            ColorspaceRGB c = obj as ColorspaceRGB;

            if ((object)c == null)
            {
                return(base.Equals(obj));
            }
            return(this == c);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of the <see cref="ColorHSx"/> class
 /// </summary>
 /// <param name="H">Value for the Hue channel</param>
 /// <param name="S">Value for the Saturation channel</param>
 /// <param name="x">Value for the X channel</param>
 /// <param name="colorspace">The colorspace for this color</param>
 protected ColorHSx(double H, double S, double x, ColorspaceRGB colorspace)
     : base(colorspace, H, S, x)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of the <see cref="ColorHSx"/> class
 /// </summary>
 /// <param name="colorspace">The colorspace for this color</param>
 protected ColorHSx(ColorspaceRGB colorspace)
     : base(colorspace, 0, 0, 0)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of the <see cref="ColorRGB"/> class
 /// </summary>
 /// <param name="R">Value for the Red channel</param>
 /// <param name="G">Value for the Green channel</param>
 /// <param name="B">Value for the Blue channel</param>
 /// <param name="colorspace">The colorspace for this color</param>
 public ColorRGB(double R, double G, double B, ColorspaceRGB colorspace)
     : base(colorspace, R, G, B)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Creates a new instance of the <see cref="ColorRGB"/> class
 /// </summary>
 /// <param name="colorspace">The colorspace for this color</param>
 public ColorRGB(ColorspaceRGB colorspace)
     : base(colorspace, 0, 0, 0)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Creates a new instance of the <see cref="ColorHSL"/> class
 /// </summary>
 /// <param name="H">Value for the Hue channel</param>
 /// <param name="S">Value for the Saturation channel</param>
 /// <param name="L">Value for the Lightness channel</param>
 /// <param name="colorspace">The colorspace for this color</param>
 public ColorHSL(double H, double S, double L, ColorspaceRGB colorspace)
     : base(H, S, L, colorspace)
 {
 }
Exemplo n.º 7
0
 /// <summary>
 /// Creates a new instance of the <see cref="ColorHSL"/> class
 /// </summary>
 /// <param name="colorspace">The colorspace for this color</param>
 public ColorHSL(ColorspaceRGB colorspace)
     : base(colorspace)
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Creates a new instance of the <see cref="ColorHSV"/> class
 /// </summary>
 /// <param name="H">Value for the Hue channel</param>
 /// <param name="S">Value for the Saturation channel</param>
 /// <param name="V">Value for the Value channel</param>
 /// <param name="colorspace">The colorspace for this color</param>
 public ColorHSV(double H, double S, double V, ColorspaceRGB colorspace)
     : base(H, S, V, colorspace)
 {
 }