Made the 1d colormap contiguous. This makes the warning go away.

Also updated to use gloo functions according to other demos.