Added a version of createFloatBuffer that takes
a ColoRGBA array.