SpectrumBars(int volMax, int bars, int height, int rectWidth, int rectHeight, int hGap, int vGap) {
		display = new Canvas();
		compressor = new FrequencyCompressor(volMax);
		isbottomColorShifting = false;
		maxVolume = volMax;
		numBars = bars;
		barHeight = height;
		rectangleWidth = rectWidth;
		rectangleHeight = rectHeight;
		horizontalGap = hGap;
		verticalGap = vGap;
		display.setWidth(rectangleWidth*numBars+horizontalGap*(numBars+1)+HORIZONTAL_PADDING);
		display.setHeight(rectangleHeight*barHeight+verticalGap*(barHeight+1)+VERTICAL_PADDING);
		bottomColor = Color.GOLD;
		topColor = Color.BLUE;
		backgroundColor = Color.BLACK;
		timeSinceColorUpdate = 0;
		colorShiftIndex = 0;
		colorShiftVals = Gradient.buildRandomGradient(topColor, 210, COLOR_SHIFT_SPEED);
		
	}