MCPcopy Create free account
hub / github.com/brenocq/implot3d / SampleColormap

Function SampleColormap

implot3d.cpp:3247–3247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3245}
3246
3247ImVec4 SampleColormap(float t, ImPlot3DColormap cmap) { return ImGui::ColorConvertU32ToFloat4(SampleColormapU32(t, cmap)); }
3248
3249void RenderColorBar(const ImU32* colors, int size, ImDrawList& DrawList, const ImRect& bounds, bool vert, bool reversed, bool continuous) {
3250 const int n = continuous ? size - 1 : size;

Callers 3

Demo_PerIndexColorsFunction · 0.85
DemoCustomPerPointStyleFunction · 0.85
RenderMethod · 0.85

Calls 1

SampleColormapU32Function · 0.85

Tested by

no test coverage detected