| 3238 | ImVec4 GetColormapColor(int idx, ImPlot3DColormap cmap) { return ImGui::ColorConvertU32ToFloat4(GetColormapColorU32(idx, cmap)); } |
| 3239 | |
| 3240 | ImU32 SampleColormapU32(float t, ImPlot3DColormap cmap) { |
| 3241 | ImPlot3DContext& gp = *GImPlot3D; |
| 3242 | cmap = cmap == IMPLOT3D_AUTO ? gp.Style.Colormap : cmap; |
| 3243 | IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!"); |
| 3244 | return gp.ColormapData.LerpTable(cmap, t); |
| 3245 | } |
| 3246 | |
| 3247 | ImVec4 SampleColormap(float t, ImPlot3DColormap cmap) { return ImGui::ColorConvertU32ToFloat4(SampleColormapU32(t, cmap)); } |
| 3248 |
no test coverage detected