Each particle has a life-time, number of seconds to wait before it vanishes. Along its life-time the particle might change its color and size, and for that purpose you setup to different arrays, the sizes array and the colors array. The particle will move from first size to last size along its life-time,same with colors. So, for example, you set the sizes smaller and smaller, and the alpha of last color set to 0.