for (int i = 0; i < numPoints; i++) points.updateColor(i, random(0, 255), random(0, 255), random(0, 255), 225);
points.endUpdateColors();
// Preparing sprites.
spritesCanvas = new GLGraphicsOffScreen(this, 640, 480);
spritesCam = new Camera(this);
sprites = new GLModel(this, numSprites, GLModel.POINT_SPRITES, GLModel.DYNAMIC);
sprites.initColors();
spriteTex = new GLTexture(this, dataPath("particle.bmp"));