예제 #1
0
        public override Particle CreateParticle()
        {
            var particle = ParticleImage.Generation();

            particle.FromColor = Color.Yellow;
            particle.ToColor   = Color.FromArgb(0, Color.Magenta);
            particle.X         = Position.X;
            particle.Y         = Position.Y;
            return(particle);
        }
예제 #2
0
        public Color ToColor   = Color.White; // конечный цвет

        public override Particle CreateParticle()
        {
            var particle = ParticleImage.Generation();

            particle.FromColor = this.FromColor;
            particle.ToColor   = Color.FromArgb(0, this.ToColor);
            particle.Speed     = 1 + Particle.rand.Next(30);
            particle.Direction = this.Direction + Particle.rand.Next(-Spread / 2, Spread / 2);

            particle.X = Position.X;
            particle.Y = Position.Y;

            return(particle);
        }