@Override
		public final void tScrollEvent(TScrollEvent e)
			{
				leafColour = new Color((int) redLeafSlider.getValue(), (int) greenLeafSlider.getValue(), (int) blueLeafSlider.getValue());
				oppositeColour = new Color(255 - (int) redLeafSlider.getValue(), 255 - (int) greenLeafSlider.getValue(), 255 - (int) blueLeafSlider.getValue());
				lightColour = new Color((int) redLightSlider.getValue(), (int) greenLightSlider.getValue(), (int) blueLightSlider.getValue());

				energyGained = 0;
				energyGained += Math.max(0, (lightColour.getRed() - leafColour.getRed()));
				energyGained += Math.max(0, (lightColour.getGreen() - leafColour.getGreen()));
				energyGained += Math.max(0, (lightColour.getBlue() - leafColour.getBlue()));

				if (energyGained > 200)
					energyGained = Math.max(0, 200 - (energyGained - 200));
			}