BlinkStickDotNet.RgbColor.FromRgb C# (CSharp) Метод

FromRgb() публичный статический Метод

Froms the rgb value from int components.
public static FromRgb ( int r, int g, int b ) : RgbColor
r int The red component.
g int The green component.
b int The blue component.
Результат RgbColor
        public static RgbColor FromRgb(int r, int g, int b)
        {
            RgbColor color = new RgbColor();
            color.R = (byte)r;
            color.G = (byte)g;
            color.B = (byte)b;

            return color;
        }
        

Usage Example

Пример #1
0
 /// <summary>
 /// Get black color.
 /// </summary>
 public static RgbColor Black()
 {
     return(RgbColor.FromRgb(0, 0, 0));
 }
All Usage Examples Of BlinkStickDotNet.RgbColor::FromRgb