Exemple #1
0
 // Set KBLED Color with Alpha
 public bool SetKBLED(KBLEDAREA area, byte color_r, byte color_g, byte color_b, double alpha)
 {
     if (alpha >= 1)   // Ignore all values over 1
     {
         return(this.SetKBLED(area, color_r, color_g, color_b));
     }
     else
     {
         return(this.SetKBLED(area, Convert.ToByte(color_r * alpha), Convert.ToByte(color_g * alpha), Convert.ToByte(color_b * alpha)));
     }
 }
Exemple #2
0
 // Set KBLED Color
 public bool SetKBLED(KBLEDAREA area, byte color_r, byte color_g, byte color_b)
 {
     return(this.SetKBLED(((((((UInt32)area << 8) + color_r) << 8) + color_g) << 8) + color_b));
 }