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

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

Froms the color of the GDK color.
public static FromGdkColor ( ushort r, ushort g, ushort b ) : RgbColor
r ushort The red component.
g ushort The green component.
b ushort The blue component.
Результат RgbColor
        public static RgbColor FromGdkColor(ushort r, ushort g, ushort b)
        {
            RgbColor color = new RgbColor();
            
            color.R = (byte)(r / 0x100);
            color.G = (byte)(g / 0x100);
            color.B = (byte)(b / 0x100);
            
            return color;
        }