예제 #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;
        }
예제 #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);
 }
예제 #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;
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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;
 }
예제 #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);
 }
예제 #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);
 }