Using Colormaps in my ImGui application #209
-
Hello, (I hope this is the right place to ask this. If not, please direct me to the right place or feel free to move it.) I have an ImGui application that I wrote to display data bitmaps, single-channel normalized data (0.0 to 1.0), form various sources. I implemented my own colormaps (which included a Jet-like palette). However, seeing your amazing work on Colormaps, I would like to include ImPlot just to leverage this. Is this possible? What I would need is a transformation of my 0.0 - 1.0 values into an RGB8 triplet or an equivalent ImU32, in which I will ignore the Alpha components. I assume that one of your available colormaps would have been selected previously. (I will probably make them all available for user selection) Looking forward to any ideas or comments! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We have |
Beta Was this translation helpful? Give feedback.
We have
SampleColormap
which returns an ImVec4 given t [0 1]. We could expose an ImU32 version if that's what you are asking for.