MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / SampleColormap

Function SampleColormap

Source/3rdParty/implot/implot.cpp:4663–4665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4661}
4662
4663ImVec4 SampleColormap(float t, ImPlotColormap cmap) {
4664 return ImGui::ColorConvertU32ToFloat4(SampleColormapU32(t,cmap));
4665}
4666
4667void RenderColorBar(const ImU32* colors, int size, ImDrawList& DrawList, const ImRect& bounds, bool vert, bool reversed, bool continuous) {
4668 const int n = continuous ? size - 1 : size;

Callers 3

Demo_PerIndexColorsFunction · 0.85
Demo_SubplotsSizingFunction · 0.85
RenderHeatmapFunction · 0.85

Calls 1

SampleColormapU32Function · 0.85

Tested by

no test coverage detected