Пример #1
0
        public void SetColour(double r, double g, double b)
        {
            var hueColor = new huestream.Color();

            hueColor.SetR(r);
            hueColor.SetG(g);
            hueColor.SetB(b);

            AreaEffect.SetColorAnimation(new ConstantAnimation(hueColor.R), new ConstantAnimation(hueColor.G), new ConstantAnimation(hueColor.B));
        }
Пример #2
0
        public void SetColour(Color color)
        {
            var hueColor = new huestream.Color();

            hueColor.SetR(color.R / 255d);
            hueColor.SetG(color.G / 255d);
            hueColor.SetB(color.B / 255d);

            AreaEffect.SetColorAnimation(new ConstantAnimation(hueColor.R), new ConstantAnimation(hueColor.G), new ConstantAnimation(hueColor.B));
        }
Пример #3
0
        public void FadeOut()
        {
            var hueColor = new huestream.Color();

            hueColor.SetR(0);
            hueColor.SetG(0);
            hueColor.SetB(0);

            AreaEffect.SetColorAnimation(new TweenAnimation(0, 500, TweenType.Linear),
                                         new TweenAnimation(0, 500, TweenType.Linear), new TweenAnimation(0, 500, TweenType.Linear));
        }