Exemplo n.º 1
0
        private Color4 getBananaColour()
        {
            switch (StatelessRNG.NextInt(3, RandomSeed))
            {
            default:
                return(new Color4(255, 240, 0, 255));

            case 1:
                return(new Color4(255, 192, 0, 255));

            case 2:
                return(new Color4(214, 221, 28, 255));
            }
        }
Exemplo n.º 2
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.º 3
0
 public float RandomSingle(int series) => StatelessRNG.NextSingle(RandomSeed, series);