Exemplo n.º 1
0
        private void applyTransforms(int randomSeed)
        {
            const double duration = 400;

            // we want our size to be very small so the glow dominates it.
            largeFaint.Size = new Vector2(0.8f);
            largeFaint
            .ResizeTo(largeFaint.Size * new Vector2(5, 1), duration, Easing.OutQuint)
            .FadeOut(duration * 2);

            const float angle_variance = 15; // should be less than 45

            directionalGlow1.Rotation = StatelessRNG.NextSingle(-angle_variance, angle_variance, randomSeed, 4);
            directionalGlow2.Rotation = StatelessRNG.NextSingle(-angle_variance, angle_variance, randomSeed, 5);

            this.FadeInFromZero(50).Then().FadeOut(duration, Easing.Out);
        }
Exemplo n.º 2
0
 public float RandomSingle(int series) => StatelessRNG.NextSingle(RandomSeed, series);