Comments (3)
Well first of all: sorry for the missing of documentation for effects.
This code is perfectly fine, all you're missing is to set a 'background' for the keyboard. Since the keyboard itself is transparent by default it can't go back to anything after fading to blue.
Just add the background (for example solid black):
keyboard.Brush = new SolidColorBrush(Color.Black);
FlashEffect testeffect = new FlashEffect(Color.Blue);
keyboard.AttachEffect(testeffect);
Note that you don't need to set the repetition count if you want it to last forever (which might be the case if set to 100 - i don't know what you are planning :p).
You also don't need to update the keyboard as long as an effect is attached. (This of course isn't the case if you changed the default UpdateMode. documentation (note that it lacks the fact that the default value is 'AutoOnEffect' which keeps updating [like Continuous, as long as the effect is active])
from cue.net.
Just one more note:
The flash effect has quite a big amount of parameters. If you take this as reference the default values are wrong (I don't know why but it seems like they are always one property to low. The default value for repetitions (that's missing because of that) is 0.
The ones in the descriptions are correct.
from cue.net.
Thanks for your fast and helpful answer. With a set keyboard brush everthing is fine now. The standard values for the parameters are good for my project. But I will look in the documantion later for some fine-tuning :-)
Can be closed (at least it was never an real 'issue' ;)
from cue.net.
Related Issues (20)
- Uninitialize or Shutdown functionality HOT 4
- Test development-changes with all devices HOT 6
- [1.0.0] Keyboard DeviceRectangle size HOT 3
- Using CUE.NET with CUE2 keyboard keys go to white when calling update() HOT 4
- Update Wiki
- Profile-API isn't able to find CUE2 profiles
- CUE.NET Does not initialize for some users HOT 5
- Memory leaks when using LED groups and brushes HOT 18
- K95 Platinum lightbar support HOT 8
- Load SDK dll from different location HOT 4
- VOID Wireless bug and feature request HOT 2
- Keys which don't exist on a physical device (ie. Macro keys) throws null reference HOT 4
- Locking the PC stops updates (sometimes) HOT 6
- HELP NEEDED: How to keep LED changes active after running application? HOT 2
- UWP Compatibility HOT 12
- CueSDK.Reinitialize never returns HOT 1
- Can't update Key Colors individually unless Brush is applied. HOT 4
- Calling EnableKeypressCallback() more than once causes duplicated events and GC/NRE issues
- Can't read color without device freezing
- Corsair keyboard K70 MK.2 RGB HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cue.net.