public bool Equals(LedColor other) { if (R == other.R && G == other.G && B == other.B) { return(true); } else { return(false); } }
public override bool SetKeyboardColor(LedColor color) { return(LogiLedSetLighting(color.Rperc, color.Gperc, color.Bperc)); }
public override bool SetKeyColor(LedKey key, LedColor color) { return(LogiLedSetLightingForKeyWithHidCode((int)key, color.Rperc, color.Gperc, color.Bperc)); }
/// <summary> /// /// </summary> /// <param name="color">The RGB color</param> /// <param name="duration">The duration in milliseconds</param> /// <param name="interval">The interval in milliseconds</param> public override bool Flash(LedColor color, int duration, int interval) { return(LogiLedFlashLighting(color.Rperc, color.Gperc, color.Bperc, duration, interval)); }
public virtual bool SetKeyboardColor(LedColor color) { throw new NotImplementedException(); }
/// <summary> /// /// </summary> /// <param name="color">The RGB color</param> /// <param name="duration">The duration in milliseconds</param> /// <param name="interval">The interval in milliseconds</param> public virtual bool Flash(LedColor color, int duration, int interval) { throw new NotImplementedException(); }