Esempio n. 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;
        }
Esempio n. 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);
 }
Esempio n. 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;
 }
Esempio n. 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);
 }
Esempio n. 5
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);
 }
Esempio n. 6
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);
 }
Esempio n. 7
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;
 }
Esempio n. 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);
 }
Esempio n. 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);
 }