Open
Description
Hi!
I would like to implement a feature to change the plotted color for each point in the dataset, something like this.
I plan on doing it this way:
- Defining a
ColorGetter
struct with function:ImU32 operator()(ImPlotCol col, int idx)
, this will be the base case, constant colors fromImPlotNextItemData
- Defining a
ColorGetterFuncPtr
struct where an user defined function is passed in and called,GetterFuncPtr
style Renderer*
structs will take a templatedColorGetter
as an argument instead ofImU32 col
- User facing functions will use
ColorGetter
, but a new version of them will useColorGetterFuncPtr
Is this the way of doing this? Will this get merged if I implement it?