private TextInfo randomTextInfo() { TextInfo info = new TextInfo(); info.text = randomString(); info.angle = randomAngle(); info.position = randomVector(width, height); info.angularVelocity = INIT_ANG_VEL_MAG * (randomAngle() - 180); info.velocity = randomVelocity(INIT_VEL_MAG, INIT_VEL_MAG); Color c = randomColorX(); float[] hsb = Color.RGBtoHSB(c.getRed(), c.getGreen(), c.getBlue(), null); info.h = hsb[0]; info.s = hsb[1]; info.v = hsb[2]; info.curTime = (float) (2 * Math.PI * random.nextFloat()); return info; }