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

Method UpdateDebugToolFlashStyleColor

src/external/imgui/imgui.cpp:13878–13887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13876}
13877
13878void ImGui::UpdateDebugToolFlashStyleColor()
13879{
13880 ImGuiContext& g = *GImGui;
13881 if (g.DebugFlashStyleColorTime <= 0.0f)
13882 return;
13883 ColorConvertHSVtoRGB(cosf(g.DebugFlashStyleColorTime * 6.0f) * 0.5f + 0.5f, 0.5f, 0.5f, g.Style.Colors[g.DebugFlashStyleColorIdx].x, g.Style.Colors[g.DebugFlashStyleColorIdx].y, g.Style.Colors[g.DebugFlashStyleColorIdx].z);
13884 g.Style.Colors[g.DebugFlashStyleColorIdx].w = 1.0f;
13885 if ((g.DebugFlashStyleColorTime -= g.IO.DeltaTime) <= 0.0f)
13886 DebugFlashStyleColorStop();
13887}
13888
13889// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds.
13890static void MetricsHelpMarker(const char* desc)

Callers

nothing calls this directly

Calls 1

DebugFlashStyleColorStopFunction · 0.85

Tested by

no test coverage detected