Number of colors to output (must be divisible by 2)
pal_function
The base palette to circularize
invert
Whether to invert the palette See details.
...
Arguments passed to `pal_function`
Details
This function is useful when the color represents radial data. E.g. position on a sphere or circle.
The `invert` parameter reverses the order of circularization. E.g. if your circular palette would be red to blue to red,
`invert` changes this blue to red to blue.