Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RGBAColorNamed"/> class.
        /// The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255.
        /// </summary>
        /// <param name="Name">The name of the color.</param>
        /// <param name="RGBColor">RGBColor object.</param>
        public RGBAColorNamed(string Name, RGBColor RGBColor)

        {
            SetColor(RGBColor);
            this.Name = Name;
        }
Exemple #2
0
 /// <summary>
 /// Sets the color of the RGBLed toy.
 /// </summary>
 /// <param name="Color">Color object containg the brightness values for the color.</param>
 public void SetColor(RGBColor Color)
 {
     SetColor(Color.Red, Color.Green, Color.Blue);
 }
Exemple #3
0
 /// <summary>
 /// Sets the RGB components of the RGBAColor.<br />
 /// The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255.
 /// </summary>
 /// <param name="Color">The RGB color to be set.</param>
 /// <returns></returns>
 public bool SetColor(RGBColor Color)
 {
     SetColor(Color.Red, Color.Green, Color.Blue);
     return true;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RGBAColor"/> class.
 /// The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255.
 /// </summary>
 /// <param name="RGBColor">RGBColor object.</param>
 public RGBAColor(RGBColor RGBColor)
 {
     SetColor(RGBColor);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RGBAColor"/> class.
 /// The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255.
 /// </summary>
 /// <param name="RGBColor">RGBColor object.</param>
 public RGBAColor(RGBColor RGBColor)
 {
     SetColor(RGBColor);
 }
 /// <summary>
 /// Sets the RGB components of the RGBAColor.<br />
 /// The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255.
 /// </summary>
 /// <param name="Color">The RGB color to be set.</param>
 /// <returns></returns>
 public bool SetColor(RGBColor Color)
 {
     SetColor(Color.Red, Color.Green, Color.Blue);
     return(true);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RGBAColorNamed"/> class.
 /// The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255.
 /// </summary>
 /// <param name="Name">The name of the color.</param>
 /// <param name="RGBColor">RGBColor object.</param>
 public RGBAColorNamed(string Name, RGBColor RGBColor)
     
 {
     SetColor(RGBColor);
     this.Name = Name;
 }
Exemple #8
0
 /// <summary>
 /// Sets the layers color values based on the specified RGBColor object.<br/>
 /// The alpha value is set to 0, if all color components are set to 0, otherwise the alpha value will be set to 255.
 /// </summary>
 /// <param name="RGB">The RGBColor object.</param>
 public void Set(RGBColor RGB)
 {
     Set(RGB.Red, RGB.Green, RGB.Blue);
 }
Exemple #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RGBALayer"/> class.<br/>
 /// The alpha value is set to 0, if all color components are set to 0, otherwise the alpha value will be set to 255.
 /// </summary>
 /// <param name="RGB">The RGBColor object.</param>
 public  RGBALayer(RGBColor RGB)
 {
     Set(RGB.Red, RGB.Green, RGB.Blue);
 }