MCPcopy Create free account
hub / github.com/Joe1sn/S-inject / UpdateDebugToolFlashStyleColor

Method UpdateDebugToolFlashStyleColor

extern/ImGui/imgui.cpp:15949–15958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15947}
15948
15949void ImGui::UpdateDebugToolFlashStyleColor()
15950{
15951 ImGuiContext& g = *GImGui;
15952 if (g.DebugFlashStyleColorTime <= 0.0f)
15953 return;
15954 ColorConvertHSVtoRGB(ImCos(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);
15955 g.Style.Colors[g.DebugFlashStyleColorIdx].w = 1.0f;
15956 if ((g.DebugFlashStyleColorTime -= g.IO.DeltaTime) <= 0.0f)
15957 DebugFlashStyleColorStop();
15958}
15959
15960static const char* FormatTextureIDForDebugDisplay(char* buf, int buf_size, ImTextureID tex_id)
15961{

Callers

nothing calls this directly

Calls 1

DebugFlashStyleColorStopFunction · 0.85

Tested by

no test coverage detected