GithubHelp home page GithubHelp logo

Comments (3)

DarthAffe avatar DarthAffe commented on June 1, 2024 1

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.

DarthAffe avatar DarthAffe commented on June 1, 2024

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.

hanshammel1337 avatar hanshammel1337 commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.