MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / UpdateDebugToolFlashStyleColor

Method UpdateDebugToolFlashStyleColor

imgui_tiny_app/imgui/imgui.cpp:22078–22087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22076}
22077
22078void ImGui::UpdateDebugToolFlashStyleColor()
22079{
22080 ImGuiContext& g = *GImGui;
22081 if (g.DebugFlashStyleColorTime <= 0.0f)
22082 return;
22083 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);
22084 g.Style.Colors[g.DebugFlashStyleColorIdx].w = 1.0f;
22085 if ((g.DebugFlashStyleColorTime -= g.IO.DeltaTime) <= 0.0f)
22086 DebugFlashStyleColorStop();
22087}
22088
22089ImU64 ImGui::DebugTextureIDToU64(ImTextureID tex_id)
22090{

Callers

nothing calls this directly

Calls 1

DebugFlashStyleColorStopFunction · 0.85

Tested by

no test coverage detected