private GLBubble[] generateBubbles(float[] color, int count) {
		GLBubble[] bubbles = new GLBubble[count];
		for (int i=0; i<count; i++) {
			float size = configuration.bubbleSize;
			if (configuration.randomizeBubbleSize) {
				size *= 0.5f + random.nextFloat() * 0.8f;
			}
			float shift = random.nextFloat() * 0.1f * (random.nextBoolean() ? 1 : -1);
			float[] col = new float[color.length];
			System.arraycopy(color, 0, col, 0, col.length);
			bubbles[i] = new GLBubble(col, -1 + random.nextFloat() * 2, bubbleFromY + shift, bubbleToY, size, random);
		}
		return bubbles;
	}
Generate bubbles.
@param color color of bubbles
@param count number of bubbles to generate
@return generated bubbles
library/src/main/java/com/cleveroad/audiovisualization/GLWaveLayer.java