MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / SampleColormap

Function SampleColormap

Engine/Source/ThirdParty/imgui/implot.cpp:4591–4593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4589}
4590
4591ImVec4 SampleColormap(float t, ImPlotColormap cmap) {
4592 return ImGui::ColorConvertU32ToFloat4(SampleColormapU32(t,cmap));
4593}
4594
4595void RenderColorBar(const ImU32* colors, int size, ImDrawList& DrawList, const ImRect& bounds, bool vert, bool reversed, bool continuous) {
4596 const int n = continuous ? size - 1 : size;

Callers 2

Demo_SubplotsSizingFunction · 0.85
RenderHeatmapFunction · 0.85

Calls 1

SampleColormapU32Function · 0.85

Tested by

no test coverage detected