Simple palette function generator. Creates a function with param n that dictates how many colors to return from the provided vector of hexadecimal color values. Generated functions send warning if there are not enough colors to use and it needs to recycle values.
Arguments
- col
character vector. Hexadecimal color codes
- rev
whether to reverse order of vector
- strategy
policy when insufficient colors are available