예제 #1
0
파일: Particle.cs 프로젝트: Fellis-a/water
        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);
        }
예제 #2
0
파일: Particle.cs 프로젝트: Fellis-a/water
        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);
        }