Use ol.color.nth in vector-layer example