class Trail2D { //--------------- float[] x, y; // position int firstIndex; int timer; int density; color clr; //--------------- Trail2D(float ix, float iy, int len, int dens, color clr){ firstIndex = 0; x = new float[len/dens]; y = new float[len/dens]; timer = 0; density = dens; for(int i=0;i