MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / ColorPicker3

Method ColorPicker3

include/imgui/imgui_widgets.cpp:6047–6054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6045}
6046
6047bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags)
6048{
6049 float col4[4] = { col[0], col[1], col[2], 1.0f };
6050 if (!ColorPicker4(label, col4, flags | ImGuiColorEditFlags_NoAlpha))
6051 return false;
6052 col[0] = col4[0]; col[1] = col4[1]; col[2] = col4[2];
6053 return true;
6054}
6055
6056// Helper for ColorPicker4()
6057static void RenderArrowsForVerticalBar(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, float bar_w, float alpha)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected