MCPcopy Create free account
hub / github.com/clementgallet/libTAS / SampleColormap

Function SampleColormap

src/external/imgui/implot.cpp:4583–4585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4581}
4582
4583ImVec4 SampleColormap(float t, ImPlotColormap cmap) {
4584 return ImGui::ColorConvertU32ToFloat4(SampleColormapU32(t,cmap));
4585}
4586
4587void RenderColorBar(const ImU32* colors, int size, ImDrawList& DrawList, const ImRect& bounds, bool vert, bool reversed, bool continuous) {
4588 const int n = continuous ? size - 1 : size;

Callers 1

RenderHeatmapFunction · 0.85

Calls 1

SampleColormapU32Function · 0.85

Tested by

no test coverage detected