public Color ToColor = Color.White; // конечный цвет public override Particle CreateParticle() { var particle = ParticleImage.Generate(); particle.image = Properties.Resources.drop1; particle.FromColor = this.FromColor; particle.ToColor = Color.FromArgb(0, this.ToColor); particle.Life = this.Life + 20 + Particle.rand.Next(100);; particle.Direction = this.Direction + Particle.rand.Next(-Spread / 2, Spread / 2); particle.X = Position.X; particle.Y = Position.Y; return(particle); }
public override Particle CreateParticle() { var particle = ParticleImage.Generate(); particle.image = Properties.Resources.drop1; particle.FromColor = Color.LightBlue; particle.ToColor = Color.White; particle.X = 0; particle.Y = 0; particle.Direction = -90 + 15 - Particle.rand.Next(30); return(particle); }