private void segmentsFrameEffects() {
		if (alive) {
			int i;
			// Energy obtained through photosynthesis
			double photosynthesis = 0;
			_nChildren = 1;
			for (i=_segments-1; i>=0; i--) {
				// Manteniment
				switch (getTypeColor(_segColor[i])) {
				// 	Segments cilis
				case CYAN:
					if (Utils.random.nextInt(100)<8 && useEnergy(Utils.CYAN_ENERGY_CONSUMPTION)) {
						dx=Utils.between(dx+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);
						dy=Utils.between(dy+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);
						dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*Math.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);
					}
					break;
					// Segments fotosint�tics
				case GREEN:
					if (useEnergy(Utils.GREEN_ENERGY_CONSUMPTION))
						photosynthesis += _m[i];
					break;
					// Segments que obtenen energia de subs1
					// 	Segments relacionats amb la fertilitat
				case YELLOW:
					_nChildren++;
					break;
				}
			}
			// Photosynthesis process
			//Get sun's energy
			_energy += _world.photosynthesis(photosynthesis);
		}
	}