Example #1
0
        public void OpacityFunction(IParticle p)
        {
            double opacity = p.Params[2] + p.Params[0] + (p.Age * 100) % 200;

            p.Color = ColorPicker.Transparent(opacity < 100 ? opacity : 200 - opacity);
        }