public static float normalizeGl(float val, float fromVal, float toVal, float newFromVal, float newToVal) {
		float perc = (val - fromVal) / (toVal - fromVal);
		return newFromVal + perc * (newToVal - newFromVal);
	}
Convert color into OpenGL color format.
@param color some color
@return array of floats: [red, green, blue, alpha]
library/src/main/java/com/cleveroad/audiovisualization/Utils.java