double count = (double) i;
double count = i;
	protected String createNewStatement(HashMap background, Style style,			StyleSheet styleSheet) 	throws BuildException 	{		StringBuffer buffer = new StringBuffer();		String startColorStr = (String) background.get("start-color");		if (startColorStr == null) {			throw new BuildException("Invalid CSS: the background type [pulsating] needs to define the attribute [start-color].");		}		startColorStr = this.colorConverter.parseColor(startColorStr);		int startColor = Integer.decode( startColorStr ).intValue();		String endColorStr = (String) background.get("end-color");		if (endColorStr == null) {			throw new BuildException("Invalid CSS: the background type [pulsating] needs to define the attribute [end-color].");		}		endColorStr = this.colorConverter.parseColor(endColorStr);		int endColor = Integer.decode( endColorStr ).intValue();		String stepsStr = (String) background.get("steps");		int steps = 10;		if (stepsStr != null) {			steps = parseInt( "steps", stepsStr );			if (steps < 2) {				throw new BuildException("Invalid CSS: the [steps] attribute of the background type [pulsating] needs to be at least 2; the value [" + steps + "] is not valid.");			}		}		Color rgbColor = new Color( startColor );		int startRed = rgbColor.getRed();		int startGreen = rgbColor.getGreen();		int startBlue = rgbColor.getBlue();		//System.out.println("start-red=" + startRed);		//System.out.println("start-green=" + startGreen);		//System.out.println("start-blue=" + startBlue);		rgbColor = new Color( endColor );		int endRed = rgbColor.getRed();		int endGreen = rgbColor.getGreen();		int endBlue = rgbColor.getBlue();		double addRed = ((double)(startRed - endRed) / (double) steps);		double addGreen = ((double)(startGreen - endGreen) / (double) steps);		double addBlue = ((double)(startBlue - endBlue ) / (double) steps);		int[] colors = new int[ steps ];		for (int i = 0; i < steps; i++) {			double count = (double) i;			int red = startRed - (int)(count * addRed);			int green = startGreen - (int)(count * addGreen );			int blue = startBlue - (int)(count * addBlue);			rgbColor = new Color( red, green, blue );			colors[i] = rgbColor.getRGB();		}		colors[ steps -1 ] = endColor;		buffer.append("new ")			  .append( BACKGROUNDS_PACKAGE )			  .append( "PulsatingBackground( new int[]{" );		for (int i = 0; i < colors.length; i++) {			buffer.append( colors[i] );			if (i != (colors.length - 1)) {				buffer.append(",");			}		}		buffer.append("}, ");		boolean repeat = true;		String repeatStr = (String) background.get("repeat");		if (repeatStr != null) {			repeat = CastUtil.getBoolean( repeatStr );		}		buffer.append( repeat )			  .append(", ");		boolean backAndForth = true;		String backAndForthStr = (String) background.get("back-and-forth");		if (backAndForthStr != null) {			backAndForth = CastUtil.getBoolean( backAndForthStr );		}		buffer.append( backAndForth )			  .append(")");		return buffer.toString();	}