public MissileMoveParticle(fk_AppWindow argWin, int randSeed) { Random rand = new Random(randSeed); double R, G, B; points = new fk_Polyline(); pmodel = new fk_Model(); pmodel.Shape = points; pmodel.LineWidth = 3.5; R = rand.NextDouble(); G = rand.NextDouble(); B = rand.NextDouble(); pmodel.LineColor = new fk_Color(R * (155.0 / 256.0) + (100.0 / 256.0), G * (155.0 / 256.0) + (100.0 / 256.0), B * (155.0 / 256.0) + (100.0 / 256.0)); argWin.Entry(pmodel); }
public MissileDeleteParticle(fk_AppWindow argWin) { double R, G, B; points = new fk_Polyline[MaxParticle]; pmodel = new fk_Model[MaxParticle]; randPos = new fk_Vector(); for (int n = 0; n < MaxParticle; n++) { points[n] = new fk_Polyline(); pmodel[n].Shape = points[n]; pmodel[n].PointSize = 4.5; R = rand.NextDouble(); G = rand.NextDouble(); B = rand.NextDouble(); Console.WriteLine("R : " + R + " G : " + G + " B : " + B); pmodel[n].PointColor = new fk_Color(R * (155.0 / 256.0) + (100.0 / 256.0), G * (155.0 / 256.0) + (100.0 / 256.0), B * (155.0 / 256.0) + (100.0 / 256.0)); argWin.Entry(pmodel[n]); } }