View Single Post
Old 04-14-2017, 06:57 PM
Apathy420 Apathy420 is offline
Registered User
Join Date: Apr 2017
Posts: 4
POST ID # = 899367
Apathy420 Reputation: 10

Originally Posted by Darth Affe View Post
The approach of changing the opacity is good, for me it sounds lie you didn't set a "background-color" so there is nothing to shine through that opacity.

CorsairKeyboard keyboard = CueSDK.KeyboardSDK;
keyboard.Brush = new SolidColorBrush(Color.Black); // Black background - this will allow the foreground to fade away
ILedGroup keyboardLeds = new ListLedGroup(device, device); // replace this if you don't want to fade all leds
keyboardLeds.Brush = // add your brush here and change it's opacity. Don't forget to call 'CueSDK.KeyboardSDK.Update()' afterwards or set the UpdateMode to Continuous to enable auto-updates
I figured it out by doing this. ( I have auto update mode to continuous. )
            ILedGroup cueLedGroup = new ListLedGroup(cueDevice, true, cueDeviceLedIds);

            cueLedGroup.Brush = new SolidColorBrush(cueColor);

            for(double i = 0; i <= 1.0; i+=0.01)
                cueLedGroup.Brush.Brightness = (float)i;
                await Task.Delay(1);
but its a little glitchy. Do you know of a way that looks more smooth like how CUE actually does a fade? Also, I have tried different increments such as += 0.02 += 0.1 and += 0.04 all of which aren't smooth or too quick.

Edit: By the way, thanks for a quick reply.
Edit2: I've also been testing with just my m65 RGB. Not my RGB keyboard or headset...

Last edited by Apathy420; 04-14-2017 at 07:00 PM.